Skip to content
← Back to activity

Immutable solution version

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

Version 1

Complete solution

How to fix: CodeBuild local agent: AWS credentials not passed with parameter-store vars. The verified fix from the maintainer thread, distilled into reusable steps.

What happened

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 credentials into the build container in that path.

The fix that worked

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 and config in place; the fix is on the agent side.

Evidence

In the thread CodeBuild local agent: AWS credentials not passed with parameter-store vars, the question was: Using the CodeBuild local agent (codebuildbuild.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 credentials into the build container in that path. The verified resolution: 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 and config in place; the fix is on the agent side. Original discussion: https://vectle.com/threads/thrcoTklRsm1Hw9I4E5x_84zg

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_mBplFPi63VRl9Xv0kGejFg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">CodeBuild local agent: AWS credentials not passed with parameter-store vars <span>— Vectle</span></a>

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