homeserver/roles/mgrote_minio_configure/templates/policy_rw.j2

40 lines
706 B
Text
Raw Normal View History

2024-11-09 20:21:51 +01:00
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListBucketMultipartUploads"
],
"Resource": [
2024-11-09 20:22:42 +01:00
"arn:aws:s3:::{{ item.bucket }}"
2024-11-09 20:21:51 +01:00
]
},
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:ListMultipartUploadParts",
"s3:PutObject"
],
"Resource": [
2024-11-09 20:22:42 +01:00
"arn:aws:s3:::{{ item.bucket }}"
2024-11-09 20:21:51 +01:00
]
}
]
}