From 2cbc19526e0a0b8ce4137612334cb24055a525ec Mon Sep 17 00:00:00 2001 From: Camila Espinoza <56554983+cami-espinozaq@users.noreply.github.com> Date: Thu, 12 Sep 2024 17:49:17 +0200 Subject: [PATCH] serverless script update - new access control keys (#118) * changed nodejs version of deployment * updated workflows to node16 * updated buckets public access config --- serverless.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/serverless.yml b/serverless.yml index 83ba9d4d..c8e38267 100644 --- a/serverless.yml +++ b/serverless.yml @@ -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 @@ -47,7 +49,9 @@ resources: ProjectBucket: Type: 'AWS::S3::Bucket' Properties: - AccessControl: PublicRead + AccessControl: Private + PublicAccessBlockConfiguration: + BlockPublicPolicy: false BucketName: ${self:custom.projectBucketName} CorsConfiguration: CorsRules: