- Newest
- Most votes
- Most comments
According to document from AWS [1], you will be needed to grant these permissions below:
- EC2:RunInstances
- EC2:CreateTags
- iam:PassRole
Please refer to the statement below from the document: Deployments that use an Auto Scaling group created with a launch template require the following permissions. These are in addition to the permissions granted by the AWSCodeDeployRole AWS managed policy.
Therefore, you need to check If you granted 3 permissions to the IAM role 'CodeDeployServiceRole':
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DeployWithASGCreatedWithLT",
"Effect": "Allow",
"Action": [
"iam:PassRole",
"ec2:CreateTags",
"ec2:RunInstances"
],
"Resource": "*"
}
]
}
I hope above I shared helps, please tell me If you have any additional questions.
[1] Troubleshoot Amazon EC2 Auto Scaling issues - "CodeDeployRole does not give you permission to perform operations in the following AWS service: AmazonAutoScaling" error https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-auto-scaling.html#troubleshooting-auto-scaling-permissions-error
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 5 months ago