Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aws codebuild UPLOAD_ARTIFACTS - CLIENT_ERROR: Error uploading artifacts: AccessDenied: Access Denied status code: 403

I am using aws codebuild, where my source is "codecommit" and trying to upload artifact to S3. But getting below exception.

UPLOAD_ARTIFACTS - CLIENT_ERROR: Error uploading artifacts: AccessDenied: Access Denied status code: 403, request id: D420E19EA87D4CD4, host id: i4ELejOSIy/9QeIATzgJNd8ZjpkCGu+dzkvQ/juHFSF2g6+2uEMgG+ljwYzcW51Oq60peeEQhmE=

Followed this article - https://docs.aws.amazon.com/codebuild/latest/userguide/getting-started.html

Can some one help?

like image 302
Kuldeep Avatar asked Sep 18 '25 05:09

Kuldeep


1 Answers

I don't know if this is still active but apparently the problem isn't on s3 side and it's just a bad error.

The problem comes while codebuild trying to encrypt the artifacts and upload them to s3.

What solved my problem was to create a KMS key and in the encryption process you specify that key

like image 80
Iakovos Belonias Avatar answered Sep 20 '25 18:09

Iakovos Belonias