Skip to content

Latest commit

 

History

History
45 lines (21 loc) · 1.27 KB

File metadata and controls

45 lines (21 loc) · 1.27 KB

EC2 Role for AWS CodePipeline and AWS CodeDeploy Setup

Steps

  1. Log into AWS.

  2. Search for the IAM service and select it.

  3. In option Roles click Create Role:

CodeDeploy TS 1

  1. Select AWS service as type of trusted entity and EC2 for the service that will use the role, then click Next: Permissions.

CodeDeploy TS 1

  1. Select and attach to the role the predefined polices AmazonEC2RoleforAWSCodeDeploy and AWSCodePipelineCustomActionAccess, then click Next: Review.

CodeDeploy TS 1

CodeDeploy TS 1

  1. Review that both polices were attached and assign a name for the role, then click Create role.

CodeDeploy TS 1

  1. Verify on Roles pane the creation of the new Role.

CodeDeploy TS 1

  1. Return to EC2 Dashboard and select Actions > Instance settings > Attach/Replace IAM Role option.

CodeDeploy TS 1

  1. Finally select the Role just created and click Apply.

CodeDeploy TS 1

CodeDeploy TS 1

This role enable AWS CodePipeline to deploy artifacts on the EC2 Instance selected.