Step 1: Create IAM Roles
Create two IAM Roles. One for the service AWS EC2 and another for the service AWS CodeDeploy.
Go to the service “IAM”, select “Roles” in the left panel and click on “Create role” on the right top.
First let us create a role ...