- Newest
- Most votes
- Most comments
Please also set the following custom policy.
https://h2ik.co/2019/02/28/aws-codedeploy-blue-green/
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"iam:PassRole",
"ec2:CreateTags",
"ec2:RunInstances"
],
"Resource": "*"
}
]
}
Hello.
Try setting the IAM managed policy below.
This IAM policy is a CodeDeploy IAM policy that includes policies related to creation such as AutoScaling.
By the way, "iam:PassRole" is not included in the policy below, so when setting an IAM policy, please include it as a custom policy.
https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSCodeDeployRole.html
Ah, that's a good suggestion. However, my role already includes several Managed Policies, including that one. I've updated my question with the full IAM Role from CloudFormation.
I think if you send a message using feedback from the AWS documentation, there is a possibility that they will respond.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
I can't believe that worked! I was just missing the "ec2:CreateTags" permissions. Why couldn't the error message say something helpful instead of complaining about "AmazonAutoScaling"?!?