Skip to content

Commit 5744c75

Browse files
authored
fix: Fix aws-node-single-page-app-via-cloudfront (#758)
1 parent 5e3e703 commit 5744c75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aws-node-single-page-app-via-cloudfront/serverless.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins:
66
- serverless-single-page-app-plugin
77

88
custom:
9-
s3Bucket: yourBucketName123
9+
s3Bucket: your-bucket-name-123
1010

1111
provider:
1212
name: aws
@@ -19,7 +19,9 @@ resources:
1919
Type: AWS::S3::Bucket
2020
Properties:
2121
BucketName: ${self:custom.s3Bucket}
22-
AccessControl: PublicRead
22+
AccessControl: Private
23+
PublicAccessBlockConfiguration:
24+
BlockPublicPolicy: false
2325
WebsiteConfiguration:
2426
IndexDocument: index.html
2527
ErrorDocument: index.html

0 commit comments

Comments
 (0)