forked from mtusi2026/mtusi2026lab7
10 lines
515 B
JSON
10 lines
515 B
JSON
{
|
|
"Version": "2012-10-17",
|
|
"Statement": [
|
|
{"Effect":"Allow","Action":["s3:GetBucketLocation"],"Resource":["arn:aws:s3:::attachments"]},
|
|
{"Effect":"Allow","Action":["s3:ListBucket"],"Resource":["arn:aws:s3:::attachments"],"Condition":{"StringLike":{"s3:prefix":["original/*"]}}},
|
|
{"Effect":"Allow","Action":["s3:GetObject"],"Resource":["arn:aws:s3:::attachments/original/*"]},
|
|
{"Effect":"Allow","Action":["s3:PutObject","s3:DeleteObject"],"Resource":["arn:aws:s3:::attachments/staging/*"]}
|
|
]
|
|
}
|