Skip to content

Commit fd61d4e

Browse files
committed
docs: correct AWS IAM permissions in README
- Add missing s3:GetObject permission required for removal manifest - Fix typo: S3AsetDeploy -> S3AssetDeploy - Properly separate bucket-level (s3:ListBucket) and object-level permissions
1 parent 40ca094 commit fd61d4e

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

README.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,32 @@ I, [2021-02-17T16:12:23.703677 #65335] INFO -- : S3AssetDeploy::Manager: Determ
183183
```
184184

185185
## AWS IAM Permissions
186-
`S3AsetDeploy` requires the following AWS IAM permissions to list, put, and delete objects in your S3 Bucket:
186+
`S3AssetDeploy` requires the following AWS IAM permissions to list, put, and delete objects in your S3 Bucket:
187187

188188
```json
189-
"Statement": [
190-
{
191-
"Action": [
192-
"s3:ListBucket",
193-
"s3:PutObject*",
194-
"s3:DeleteObject"
195-
],
196-
"Effect": "Allow",
197-
"Resource": [
198-
"arn:aws:s3:::#{YOUR_BUCKET}",
199-
"arn:aws:s3:::#{YOUR_BUCKET}/*"
200-
]
201-
}
202-
]
189+
{
190+
"Version": "2012-10-17",
191+
"Statement": [
192+
{
193+
"Sid": "AllowBucketOperations",
194+
"Effect": "Allow",
195+
"Action": [
196+
"s3:ListBucket"
197+
],
198+
"Resource": "arn:aws:s3:::#{YOUR_BUCKET}"
199+
},
200+
{
201+
"Sid": "AllowObjectOperations",
202+
"Effect": "Allow",
203+
"Action": [
204+
"s3:GetObject",
205+
"s3:PutObject*",
206+
"s3:DeleteObject"
207+
],
208+
"Resource": "arn:aws:s3:::#{YOUR_BUCKET}/*"
209+
}
210+
]
211+
}
203212
```
204213

205214
## Configuration with Cloudfront

0 commit comments

Comments
 (0)