mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
chore: add iam policy example for accessing folders in buckets
This commit is contained in:
25
examples/aws/iam.policies/access folder in bucket.json
Normal file
25
examples/aws/iam.policies/access folder in bucket.json
Normal 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/*"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user