Step 1 – prerequisite configurations for AWS CodeDeploy

You need to complete the following prerequisite configurations before you start to use AWS CodeDeploy:

  1. 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", ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.