From the course: Deploying Your AWS Application to the Cloud with Docker

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Setting CodeBuild permissions

Setting CodeBuild permissions

- Now that we understand the reason for our failure, lets go to IAM and see if we can fix. Type IAM, ill go to roles. this is the one we created when we created our project. Codebuild, demowebappbuild-service-roll. I click on it, now, the issue here is that it was trying to log into ECR and it could not do it I am going to click on attached policies and I'll type registry here. we get three results, Full Access, Power User and Read Only. we're going to choose power user. this is going to allow, codebuild to access, our container registry as a power user. I'll attach this policy to enroll, and this should do it. If we get an error, could be related to something else. This should fix the login command issue. Let's go back to CodePipeline. And the only way to find out is to, click on it, and release change. This is going to simulate that the code change and it's time to run the cicd pipeline…

Contents