Skip to content

Commit

Permalink
cloudfrontのs3bucket dploymentの中身を修正しました
Browse files Browse the repository at this point in the history
  • Loading branch information
AsukaNamiki committed Apr 16, 2024
1 parent 25cacef commit 8934c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/lib/backend-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export class BackendStack extends cdk.Stack {
serverAccessLogsBucket: logBucket,
serverAccessLogsPrefix: "DiaryHostingBucketLog/",
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
websiteIndexDocument: 'index.html',
cors: [
{
allowedMethods: [s3.HttpMethods.GET, s3.HttpMethods.HEAD],
Expand Down Expand Up @@ -186,8 +187,7 @@ export class BackendStack extends cdk.Stack {
],
destinationBucket: websiteBucket,
distribution: distribution,
distributionPaths: ['/*'],
accessControl: s3.BucketAccessControl.PUBLIC_READ_WRITE
distributionPaths: ['/*']
});

}
Expand Down

0 comments on commit 8934c49

Please sign in to comment.