Skip to content

Instantly share code, notes, and snippets.

@jesserobertson
Created August 30, 2018 04:18
Show Gist options
  • Save jesserobertson/1f719cd68ad2951ce8668340221f4bfe to your computer and use it in GitHub Desktop.
Save jesserobertson/1f719cd68ad2951ce8668340221f4bfe to your computer and use it in GitHub Desktop.
ECS Instance role template for terraform
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ses:SendEmail",
"ses:SendRawEmail"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"s3:ListAllMyBuckets"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::*"
},
{
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::"
},
{
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::${bucket_name}/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment