This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static createS3Bucket(scope: cdk.Construct, user: iam.User): s3.Bucket { | |
const name = 'bucket'; | |
const bucket = new s3.Bucket(scope, name, { | |
bucketName: name, | |
accessControl: s3.BucketAccessControl.PUBLIC_READ, | |
cors: [{ | |
allowedOrigins: [ '*' ], | |
allowedMethods: [ s3.HttpMethods.GET ], | |
allowedHeaders: [ '*' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static createUser(scope: cdk.Construct): iam.User { | |
const name = 'User'; | |
return new iam.User(scope, name, { | |
userName: name | |
}); | |
} | |
private static createAccessKey( | |
scope: cdk.Construct, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/ | |
|——src/ | |
| |——app/ | |
| |——app.csproj | |
|——cdk/ | |
|——cdk.json |
NewerOlder