AWS/ETC

CodeDeploy, permission to perform operations 문제 해결

나참새 2023. 10. 25. 14:59

CodeDeploy 블루/그린 배포할때 'does not give you permission to perform operations in the following AWS service: AmazonAutoScaling.'에러로그가 발생하는 경우에 아래 Policy 생성후, CodeDeploy의 역할에 추가해야됨.

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

끝.