Skip to content

Commit

Permalink
Remove unnecessary ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Oct 4, 2024
1 parent 8379046 commit f867fad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions aws-ts-static-website/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f867fad

Please sign in to comment.