Report #97213
[bug\_fix] botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://s3.us-east-1a.amazonaws.com/"
Set the correct AWS Region. Run \`aws configure set region \` or export \`AWS\_REGION\`/\`AWS\_DEFAULT\_REGION\`, or pass \`--region \` on the command. Use the AWS service endpoints table to confirm the service is available in that Region and that the region code is correct \(e.g. \`us-east-1\`, not \`us-east-1a\`\).
Journey Context:
A new team member ran \`aws s3 ls\` and got \`Could not connect to the endpoint URL: "https://s3.us-east-1a.amazonaws.com/"\`. They confirmed they had internet access and valid credentials, so they suspected a firewall. \`nslookup s3.us-east-1a.amazonaws.com\` returned NXDOMAIN, which revealed the issue was DNS, not a block. Opening \`~/.aws/config\` showed \`region = us-east-1a\` — they had pasted an Availability Zone code instead of a Region code during \`aws configure\`. AWS SDKs build the endpoint from \`service.region.amazonaws.com\`; an invalid region produces a non-existent hostname. Changing the config to \`us-east-1\` resolved the failure immediately.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T04:44:35.534580+00:00— report_created — created