You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1172,7 +1172,9 @@ When asset proxying is enabled, two endpoints are available for accessing proxie
1172
1172
1173
1173
### IAM Permissions
1174
1174
1175
-
For the Asset Proxy feature to generate pre-signed URLs, the API and ingest Lambdas must be assigned permissions for the S3 buckets containing the assets. Add the following to the IAM role statements in your `serverless.yml` file, adjusting the resources as needed:
1175
+
For the Asset Proxy feature to generate pre-signed URLs, the API and ingest Lambdas must
1176
+
be assigned permissions for the S3 buckets containing the assets. Add the following to the
1177
+
IAM role statements in your `serverless.yml` file, adjusting the resources as needed:
1176
1178
1177
1179
For the `LIST` mode, you can specify the buckets listed in `ASSET_PROXY_BUCKET_LIST`:
1178
1180
@@ -1186,6 +1188,7 @@ For the `LIST` mode, you can specify the buckets listed in `ASSET_PROXY_BUCKET_L
1186
1188
- Effect: Allow
1187
1189
Action:
1188
1190
- s3:HeadBucket
1191
+
- s3:ListBucket
1189
1192
Resource:
1190
1193
- "arn:aws:s3:::my-bucket-1"
1191
1194
- "arn:aws:s3:::my-bucket-2"
@@ -1201,10 +1204,12 @@ For the `ALL` mode, use wildcards:
1201
1204
- Effect: Allow
1202
1205
Action:
1203
1206
- s3:HeadBucket
1207
+
- s3:ListBucket
1204
1208
Resource: "arn:aws:s3:::*"
1205
1209
```
1206
1210
1207
-
When using `ALL_BUCKETS_IN_ACCOUNT` mode, the Lambda also needs permission to list buckets:
1211
+
When using `ALL_BUCKETS_IN_ACCOUNT` mode, the Lambda also needs permission to list the
1212
+
account buckets:
1208
1213
1209
1214
```yaml
1210
1215
- Effect: Allow
@@ -1214,6 +1219,7 @@ When using `ALL_BUCKETS_IN_ACCOUNT` mode, the Lambda also needs permission to li
0 commit comments