Skip to content

Instantly share code, notes, and snippets.

@stojg
Created October 8, 2014 09:23
Show Gist options
  • Save stojg/494127341d38df113309 to your computer and use it in GitHub Desktop.
Save stojg/494127341d38df113309 to your computer and use it in GitHub Desktop.
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"Stmt9dsun432j",
"Effect":"Allow",
"Action":[
"elasticloadbalancing:CreateLBCookieStickinessPolicy",
"elasticloadbalancing:SetLoadBalancerPoliciesOfListener",
"elasticloadbalancing:DescribeInstanceHealth",
"elasticloadbalancing:DeregisterInstancesFromLoadBalancer",
"elasticloadbalancing:DeleteLoadBalancerPolicy",
"autoscaling:CreateLaunchConfiguration",
"autoscaling:DeleteLaunchConfiguration",
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeAutoScalingInstances",
"autoscaling:DescribeLaunchConfigurations",
"autoscaling:UpdateAutoScalingGroup",
"cloudformation:CreateStack",
"cloudformation:DeleteStack",
"cloudformation:DescribeStackResource",
"cloudformation:DescribeStackResources",
"cloudformation:DescribeStacks",
"cloudformation:ValidateTemplate",
"ec2:RunInstances",
"ec2:DescribeInstances",
"ec2:DescribeKeyPairs",
"ec2:DescribeImages",
"ec2:CreateTags",
"ec2:DescribeTags",
"ec2:CreateImage",
"ec2:CreateTags",
"ec2:DescribeImages",
"ec2:TerminateInstances",
"iam:PassRole"
],
"Resource":[
"*"
]
},
{
"Effect":"Allow",
"Action":[
"s3:GetBucketLocation",
"s3:ListAllMyBuckets"
],
"Resource":"arn:aws:s3:::*"
},
{
"Effect":"Allow",
"Action":[
"s3:ListBucket"
],
"Resource":[
"arn:aws:s3:::bucket-name"
]
},
{
"Effect":"Allow",
"Action":[
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObject",
"s3:GetObjectAcl"
],
"Resource":[
"arn:aws:s3:::bucket-name/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment