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.