Skip to content

fix(agent): validate AWS credentials before Docker build#33

Merged
krokoko merged 2 commits intoaws-samples:mainfrom
scoropeza:fix/validate-aws-before-docker-build
Apr 15, 2026
Merged

fix(agent): validate AWS credentials before Docker build#33
krokoko merged 2 commits intoaws-samples:mainfrom
scoropeza:fix/validate-aws-before-docker-build

Conversation

@scoropeza
Copy link
Copy Markdown
Contributor

Move credential resolution (explicit env vars, AWS CLI/SSO, ~/.aws mount) before the Docker image build so expired sessions and missing credentials fail immediately with actionable guidance.

  • Fix unbound variable crash with empty array under set -u
  • Remove dead MOUNT_AWS_DIR variable
  • Expand error message to list all three credential methods
  • Update local testing docs with credential resolution details, troubleshooting table, and Starlight admonitions

Area

  • cdk — infrastructure, handlers, constructs
  • agent — Python runtime / Docker image
  • clibgagent client
  • docs — guides or design sources (docs/guides/, docs/design/)
  • tooling — root mise.toml, scripts, CI workflows

Tip: AGENTS.md lists where to edit and which tests to extend.

Related

Changes

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

Move credential resolution (explicit env vars, AWS CLI/SSO, ~/.aws
mount) before the Docker image build so expired sessions and missing
credentials fail immediately with actionable guidance.

- Fix unbound variable crash with empty array under set -u
- Remove dead MOUNT_AWS_DIR variable
- Expand error message to list all three credential methods
- Update local testing docs with credential resolution details,
  troubleshooting table, and Starlight admonitions
@scoropeza scoropeza requested a review from a team as a code owner April 14, 2026 22:13
@krokoko krokoko added this pull request to the merge queue Apr 15, 2026
Merged via the queue into aws-samples:main with commit b755481 Apr 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants