Before we begin with the actual launch of our EC2 instance with the CodeDeploy agent installed on it, we need to set up an EC2 instance profile as well as an instance role that will grant our EC2 instances the necessary permissions to interact with both CodeCommit as well as with CodeDeploy:
- To get started, first log in to the AWS Management Console and select the IAM service from the services Filter. Alternatively, you can launch the IAM dashboard by selecting URL https://console.aws.amazon.com/iam/.
- From the IAM dashboard, select the Policies option from the navigation pane to bring up the IAM Policies page. Here, click on Create policy to get started.
- In the Create policy page, select the ...