From 1e43655ca4d72777a3cf6c0c7704114c39621080 Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 19 Oct 2022 15:05:15 +0800 Subject: [PATCH] set permission test --- lambdas/serverless.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lambdas/serverless.ts b/lambdas/serverless.ts index 357f04b..db532d9 100644 --- a/lambdas/serverless.ts +++ b/lambdas/serverless.ts @@ -25,12 +25,13 @@ const serverlessConfiguration: AWS = { { "Effect": "Allow", "Resource": [ + "arn:aws:s3:::dist.tea.xyz", "arn:aws:s3:::dist.tea.xyz/*", "arn:aws:s3:::dist.tea.xyz/*/*", ], "Action": [ - "s3:Get*", - "s3:List*", + "s3:GetBucketAcl", + "s3:List", "s3:ListBucket", "s3:PutObject" ]