Step 3 – modifying the generated policy

Proceed with the following steps to allow CodeBuild to upload build artifacts to your Amazon S3 bucket:

  1. Log in to AWS and open IAM console from https://console.aws.amazon.com/iam/.
  2. Select Roles and open the role that was generated for that project. Typically, it should look like code-build-project-name-service-role.
  3. Under the Permissions tab, select Add inline policy.
  4. In service, select Choose a service.
  5. In Select a service, choose S3.
  6. In Actions, select actions.
  7. Under Access level groups, expand write, and then select PutObject.
  8. Select Resources and select any checkbox.
  9. Select Review policy.
  10. Add the name and then select Create policy.

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.