Skip to content

Commit

Permalink
Merge pull request #423 from guardian/notes-for-policy-update-ami
Browse files Browse the repository at this point in the history
Policy required for Riff Raff to update AMI of a stack
  • Loading branch information
Jenny Sivapalan committed Feb 7, 2017
2 parents 1dec8b0 + 875639a commit 916ad00
Showing 1 changed file with 27 additions and 0 deletions.
Expand Up @@ -10,6 +10,33 @@ object AmiCloudFormationParameter extends DeploymentType with CloudFormationDepl
|
|Given AMI tags, this will resolve the latest matching AMI and update the AMI parameter
|on the provided CloudFormation stack.
|
|The set of AWS permissions needed to let RiffRaff do an AMI updates are:
|
| {
| "Statement": [
| {
| "Action": [
| "cloudformation:DescribeStacks",
| "cloudformation:UpdateStack",
| "cloudformation:DescribeStackEvents",
| "ec2:DescribeSecurityGroups",
| "iam:PassRole",
| "autoscaling:CreateLaunchConfiguration",
| "autoscaling:UpdateAutoScalingGroup",
| "autoscaling:DescribeLaunchConfigurations",
| "autoscaling:DescribeScalingActivities",
| "autoscaling:DeleteLaunchConfiguration"
| ],
| "Effect": "Allow",
| "Resource": [
| "*"
| ]
| }
| ]
| }
|
|You'll need to add this to the Riff-Raff IAM account used for your project.
""".stripMargin

val update = Action("update",
Expand Down

0 comments on commit 916ad00

Please sign in to comment.