chore: add iam policy example for accessing folders in buckets

This commit is contained in:
Michele Cereda
2024-06-12 20:59:43 +02:00
parent e95bcc8d6b
commit 6322d29c94

View File

@@ -0,0 +1,25 @@
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowAccessToTheBucket",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::backups-bucket"
]
},
{
"Sid": "AllowOperationsInTheDesignatedFolder",
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::backups-bucket/prometheus/*"
]
}
]
}