From f2d4b1452b0a1cb9a85088a37726fc7d888a2cf1 Mon Sep 17 00:00:00 2001 From: Namiki Asuka Date: Sat, 13 Apr 2024 12:57:28 +0000 Subject: [PATCH] =?UTF-8?q?S3=20deployment=E3=81=ABacl=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/lib/backend-stack.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/lib/backend-stack.ts b/src/backend/lib/backend-stack.ts index 839842f0..28374840 100644 --- a/src/backend/lib/backend-stack.ts +++ b/src/backend/lib/backend-stack.ts @@ -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`, { @@ -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], @@ -196,6 +194,7 @@ export class BackendStack extends cdk.Stack { destinationBucket: websiteBucket, distribution: distribution, distributionPaths: ['/*'], + accessControl: s3.BucketAccessControl.PRIVATE }); }