Skip to content

Instantly share code, notes, and snippets.

@whalesalad
Created May 1, 2014 22:40
Show Gist options
  • Select an option

  • Save whalesalad/af3f6eb82e53b98ebae8 to your computer and use it in GitHub Desktop.

Select an option

Save whalesalad/af3f6eb82e53b98ebae8 to your computer and use it in GitHub Desktop.
A sample IAM role for read-only EC2 access.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ec2:Describe*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "elasticloadbalancing:Describe*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cloudwatch:ListMetrics",
"cloudwatch:GetMetricStatistics",
"cloudwatch:Describe*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "autoscaling:Describe*",
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment