You need to complete the following prerequisite configurations before you start to use AWS CodeDeploy:
- Creating a custom AWS CodeDeploy policy for the IAM user: You can attach the following IAM role to your existing user or new user to use AWS CodeDeploy. It will grant access for EC2/on-premises instances, Lambda functions, and other services:
{ "Version": "2012-10-17", "Statement" : [ { "Effect" : "Allow", "Action" : [ "autoscaling:*", "codedeploy:*", "ec2:*", "lambda:*", "elasticloadbalancing:*", "iam:AddRoleToInstanceProfile", "iam:CreateInstanceProfile", "iam:CreateRole", "iam:DeleteInstanceProfile", "iam:DeleteRole", "iam:DeleteRolePolicy", "iam:GetInstanceProfile", "iam:GetRole", ...