Skip to content

Commit

Permalink
fix: missing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tractorcow committed Jul 25, 2023
1 parent 35b0e43 commit f95d6d2
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions gatsby-plugin-s3-e2e-tests-infrastructure/test-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"Action": [
"s3:CreateBucket",
"s3:PutBucketPolicy",
"s3:DeleteBucket"
"s3:DeleteBucket",
"s3:PutBucketAcl",
"s3:PutBucketPublicAccessBlock",
"s3:PutBucketWebsite"
],
"Resource": "arn:aws:s3:::gatsby-plugin-s3-tests-*",
"Condition": {
Expand All @@ -21,7 +24,9 @@
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:DeleteObject"
"s3:DeleteObject",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::gatsby-plugin-s3-tests-*/*",
"Condition": {
Expand Down Expand Up @@ -74,6 +79,19 @@
}
}
},
{
"Sid": "PutBucketPublicAccessBlock",
"Effect": "Allow",
"Action": [
"s3:PutBucketPublicAccessBlock"
],
"Resource": "arn:aws:s3:::gatsby-plugin-s3-tests-*",
"Condition": {
"StringLike": {
"aws:UserAgent": "*TestPerms*PutBucketPublicAccessBlock*"
}
}
},
{
"Sid": "PutBucketAcl",
"Effect": "Allow",
Expand Down

0 comments on commit f95d6d2

Please sign in to comment.