From f867fad74b7420b9bebc97de61acd623310214f8 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Fri, 4 Oct 2024 13:52:27 -0400 Subject: [PATCH] Remove unnecessary ACL --- aws-ts-static-website/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/aws-ts-static-website/index.ts b/aws-ts-static-website/index.ts index f70a452ce..1359d2bd9 100644 --- a/aws-ts-static-website/index.ts +++ b/aws-ts-static-website/index.ts @@ -26,8 +26,7 @@ const config = { }; // contentBucket is the S3 bucket that the website's contents will be stored in. -const contentBucket = new aws.s3.BucketV2("contentBucket", {bucket: config.targetDomain}); -configureACL("contentBucket", contentBucket, "public-read"); +const contentBucket = new aws.s3.BucketV2(`${config.targetDomain}-content`); const contentBucketWebsite = new aws.s3.BucketWebsiteConfigurationV2("contentBucketWebsite", { bucket: contentBucket.bucket, @@ -72,8 +71,7 @@ crawlDirectory( }); // logsBucket is an S3 bucket that will contain the CDN's request logs. -const logsBucket = new aws.s3.BucketV2("requestLogs", { bucket: `${config.targetDomain}-logs` }); - +const logsBucket = new aws.s3.BucketV2(`${config.targetDomain}-logs`); configureACL("requestLogs", logsBucket, "private"); const tenMinutes = 60 * 10;