2018-04-27 15:44:37 +02:00
|
|
|
{
|
|
|
|
"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"
|
2018-04-27 16:37:40 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"Effect": "Allow",
|
|
|
|
"Principal": {
|
|
|
|
"AWS": "*"
|
|
|
|
},
|
|
|
|
"Action": [
|
|
|
|
"s3:GetObject"
|
|
|
|
],
|
|
|
|
"Resource": [
|
|
|
|
"arn:aws:s3:::BUCKETNAME/*"
|
|
|
|
]
|
2018-04-27 15:44:37 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|