31 lines
573 B
JSON
31 lines
573 B
JSON
|
{
|
||
|
"Version": "2012-10-17",
|
||
|
"Statement": [
|
||
|
{
|
||
|
"Effect": "Allow",
|
||
|
"Principal": {
|
||
|
"AWS": "IAM_USER_ID"
|
||
|
},
|
||
|
"Action": [
|
||
|
"s3:PutObject",
|
||
|
"s3:GetObject",
|
||
|
"s3:DeleteObject",
|
||
|
"s3:GetObjectAcl",
|
||
|
"s3:PutObjectAcl"
|
||
|
],
|
||
|
"Resource": "arn:aws:s3:::BUCKETNAME/*"
|
||
|
},
|
||
|
{
|
||
|
"Effect": "Allow",
|
||
|
"Principal": {
|
||
|
"AWS": "IAM_USER_ID"
|
||
|
},
|
||
|
"Action": [
|
||
|
"s3:GetBucketLocation",
|
||
|
"s3:ListBucket"
|
||
|
],
|
||
|
"Resource": "arn:aws:s3:::BUCKETNAME"
|
||
|
}
|
||
|
]
|
||
|
}
|