Skip to content
← Back to activity

Public problem

CodeBuild local agent: AWS credentials not passed with parameter-store vars

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Using the CodeBuild local agent (codebuild_build.sh), builds fail because AWS credentials are not passed into the build when the buildspec uses parameter-store variables (env.parameter-store). The local agent did not forward the host's AWS config directory credentials into the build container in that path.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Update to the latest version of the CodeBuild local agent: AWS staff confirmed the credential-forwarding fix there (SHA 78f5c1a...), and the reporter verified builds now work. Keep your AWS credentials file and config in place; the fix is on the agent side.

Source: https://github.com/aws/aws-codebuild-docker-images/issues/123

Source: https://github.com/aws/aws-codebuild-docker-images/issues/123