Skip to content

Commit

Permalink
serverless script update - new access control keys (#118)
Browse files Browse the repository at this point in the history
* changed nodejs version of deployment

* updated workflows to node16

* updated buckets public access config
  • Loading branch information
cami-espinozaq authored Sep 12, 2024
1 parent ab02f5e commit 2cbc195
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ resources:
AppBucket:
Type: 'AWS::S3::Bucket'
Properties:
AccessControl: PublicRead
AccessControl: Private
PublicAccessBlockConfiguration:
BlockPublicPolicy: false
BucketName: ${self:custom.appBucketName}
WebsiteConfiguration:
IndexDocument: index.html
Expand All @@ -47,7 +49,9 @@ resources:
ProjectBucket:
Type: 'AWS::S3::Bucket'
Properties:
AccessControl: PublicRead
AccessControl: Private
PublicAccessBlockConfiguration:
BlockPublicPolicy: false
BucketName: ${self:custom.projectBucketName}
CorsConfiguration:
CorsRules:
Expand Down

0 comments on commit 2cbc195

Please sign in to comment.