Skip to content

Commit feb8810

Browse files
bbertuccclaude
andcommitted
fix(dev): leave AWS_PROFILE unset for boto3 in api-gateway
boto3 treats a set-but-empty AWS_PROFILE as a missing named profile (ProfileNotFound) and ignores the exported env credentials. Leaving it unset makes boto3 use the AWS_ACCESS_KEY_ID/SECRET creds above. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 07406bd commit feb8810

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docker-compose.dev.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ services:
108108
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-test}
109109
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-test}
110110
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN:-}
111-
# Clear AWS_PROFILE to prevent boto3 from looking for profile config in container
112-
- AWS_PROFILE=
111+
# AWS_PROFILE is intentionally NOT set here. boto3 treats a set-but-empty
112+
# AWS_PROFILE as a missing named profile (ProfileNotFound) and ignores the
113+
# exported env creds above. Leaving it unset makes boto3 use those creds.
113114
- AWS_DEFAULT_REGION=us-east-1
114115
# Disable AWS Instance Metadata Service (IMDS) to prevent boto3 hang in Docker
115116
- AWS_EC2_METADATA_DISABLED=true

0 commit comments

Comments
 (0)