Skip to content

Commit 66c4c73

Browse files
committed
restrict the iam policy for the s3 bucket snapshot example
Signed-off-by: Carlos Neto <[email protected]>
1 parent a711206 commit 66c4c73

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

_tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,34 @@ You will most likely not need to specify any parameters except for `location`. F
190190

191191
```json
192192
{
193-
"Version": "2012-10-17",
194-
"Statement": [{
195-
"Action": [
196-
"s3:*"
197-
],
198-
"Effect": "Allow",
199-
"Resource": [
200-
"arn:aws:s3:::your-bucket",
201-
"arn:aws:s3:::your-bucket/*"
202-
]
203-
}]
193+
"Version": "2012-10-17",
194+
"Statement": [
195+
{
196+
"Action": [
197+
"s3:GetBucketLocation",
198+
"s3:ListBucket",
199+
"s3:ListBucketMultipartUploads",
200+
"s3:ListBucketVersions"
201+
],
202+
"Effect": "Allow",
203+
"Resource": [
204+
"arn:aws:s3:::your-bucket"
205+
]
206+
},
207+
{
208+
"Action": [
209+
"s3:AbortMultipartUpload",
210+
"s3:DeleteObject",
211+
"s3:GetObject",
212+
"s3:ListMultipartUploadParts",
213+
"s3:PutObject"
214+
],
215+
"Effect": "Allow",
216+
"Resource": [
217+
"arn:aws:s3:::your-bucket/*"
218+
]
219+
}
220+
]
204221
}
205222
```
206223

0 commit comments

Comments
 (0)