DEV Community

Shootacean
Shootacean

Posted on • Edited on • Originally published at shootacean.com

CodeDeployでAutoScalingGroupに対してデプロイした際のロールエラー

エラー内容

The IAM role arn:~~~ does not give you permission to perform operations in the following AWS service: AmazonAutoScaling.

解決方法

現在 CodeDeployに割り当てている IAMロールのポリシーに、以下のポリシーを追加するだけです。

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "iam:PassRole",
                "ec2:CreateTags",
                "ec2:RunInstances"
            ],
            "Resource": "*"
        }
    ]
}
Enter fullscreen mode Exit fullscreen mode

参考

Top comments (0)