Skip to content

Commit

Permalink
S3 deploymentにaclを追加しました
Browse files Browse the repository at this point in the history
  • Loading branch information
AsukaNamiki committed Apr 13, 2024
1 parent 6e5b08f commit f2d4b14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backend/lib/backend-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class BackendStack extends cdk.Stack {
removalPolicy: cdk.RemovalPolicy.DESTROY,
enforceSSL: true,
serverAccessLogsPrefix: "log/",
accessControl: s3.BucketAccessControl.LOG_DELIVERY_WRITE,
});

// new s3.Bucket(this, `DiaryBucket`, {
Expand Down Expand Up @@ -124,7 +123,6 @@ export class BackendStack extends cdk.Stack {
serverAccessLogsBucket: logBucket,
serverAccessLogsPrefix: "DiaryHostingBucketLog/",
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
accessControl: s3.BucketAccessControl.PRIVATE,
cors: [
{
allowedMethods: [s3.HttpMethods.GET, s3.HttpMethods.HEAD],
Expand Down Expand Up @@ -196,6 +194,7 @@ export class BackendStack extends cdk.Stack {
destinationBucket: websiteBucket,
distribution: distribution,
distributionPaths: ['/*'],
accessControl: s3.BucketAccessControl.PRIVATE
});

}
Expand Down

0 comments on commit f2d4b14

Please sign in to comment.