Skip to content

Instantly share code, notes, and snippets.

@shanielh
Created December 17, 2017 14:57
Show Gist options
  • Save shanielh/a0264044530174a9d7e895dcf130596c to your computer and use it in GitHub Desktop.
Save shanielh/a0264044530174a9d7e895dcf130596c to your computer and use it in GitHub Desktop.
Policies
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
"arn:aws:s3:::*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:ListObject",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::INPUT_BUCKET_NAME",
"arn:aws:s3:::INPUT_BUCKET_NAME/*"
]
},
{
"Effect": "Allow",
"Action": [
"iam:SimulatePrincipalPolicy"
],
"Resource": [
"arn:aws:iam::ACCOUNT_ID:user/${aws:username}"
]
}
]
}
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
"arn:aws:s3:::*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::OUTPUT_BUCKET_NAME",
"arn:aws:s3:::OUTPUT_BUCKET_NAME/*"
]
},
{
"Effect": "Allow",
"Action": [
"iam:SimulatePrincipalPolicy"
],
"Resource": [
"arn:aws:iam::ACCOUNT_ID:user/${aws:username}"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment