Set up AWS CodeDeploy & IAM
First create the IAM access policy and role to be used for access to EC2 by CodeDeploy. I’m sure I’ve implemented overkill here but I just needed to get this running first.
Create the policy CLZBITBP
Create the role CLZBITBR
EC2
Create an EC2 linux instance and assign it the role CLZBITBR
CodeDeploy
In the AWS console select AWS CodeDeploy, check and save the region you are using as this will have to be used by bitbucket.