diff --git a/roles/mgrote_minio_configure/templates/policy_rw.j2 b/roles/mgrote_minio_configure/templates/policy_rw.j2 index 17391d99..84d46209 100644 --- a/roles/mgrote_minio_configure/templates/policy_rw.j2 +++ b/roles/mgrote_minio_configure/templates/policy_rw.j2 @@ -14,7 +14,7 @@ "s3:ListBucketMultipartUploads" ], "Resource": [ - "arn:aws:s3:::testbucket3" + "arn:aws:s3:::{{ item.bucket }}" ] }, { @@ -32,7 +32,7 @@ "s3:PutObject" ], "Resource": [ - "arn:aws:s3:::testbucket3/*" + "arn:aws:s3:::{{ item.bucket }}" ] } ]