Last active
August 29, 2015 14:02
-
-
Save jeremykarn/6665ef557140464e9e35 to your computer and use it in GitHub Desktop.
Example Mortar IAM EMR Policy document.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:*" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::*elasticmapreduce", | |
"arn:aws:s3:::*elasticmapreduce/*", | |
"arn:aws:s3:::mortar-emr-bootstrap", | |
"arn:aws:s3:::mortar-emr-bootstrap/*", | |
"arn:aws:s3:::[YOUR LOG BUCKET]", | |
"arn:aws:s3:::[YOUR LOG BUCKET]/*" | |
] | |
}, | |
{ | |
"Action": [ | |
"elasticmapreduce:*", | |
"cloudwatch:*" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
}, | |
{ | |
"Action": [ | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:CancelSpotInstanceRequests", | |
"ec2:CreateTags", | |
"ec2:RequestSpotInstances", | |
"ec2:RunInstances", | |
"ec2:ModifyImageAttribute", | |
"ec2:DescribeAvailabilityZones", | |
"ec2:DescribeInstances", | |
"ec2:DescribeKeyPairs", | |
"ec2:DescribeRouteTables", | |
"ec2:DescribeSecurityGroups", | |
"ec2:DescribeSpotInstanceRequests", | |
"ec2:DescribeSpotPriceHistory", | |
"ec2:DescribeSubnets" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment