aws-actions/configure-aws-credentials "Region is not set"
configure-aws-credentials needs a region to construct STS and service endpoints. Without aws-region, the credential resolution and any downstream AWS call fail.
What this error means
The credentials step or a later AWS call fails with "Region is not set" or "missing region".
github-actions
Error: Region is not set. Please set a region with the aws-region input.
##[error]Region is not set.Common causes
aws-region input omitted
No aws-region was supplied to configure-aws-credentials.
No AWS_REGION env fallback
Neither the input nor an AWS_REGION/AWS_DEFAULT_REGION env var is set.
How to fix it
Provide aws-region
- Set the aws-region input on the configure step.
- Or export AWS_REGION at the job level.
- Re-run; credential resolution succeeds.
.github/workflows/aws.yml
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::111122223333:role/ci
aws-region: us-east-1How to prevent it
- Always set aws-region explicitly; do not rely on a default.
- Pin the region per environment to avoid cross-region surprises.
Frequently asked questions
What causes ""Could not load credentials... Region is not set""?
No aws-region was supplied to configure-aws-credentials.
How do I fix "Could not load credentials... Region is not set"?
Provide aws-region
Related guides
aws-actions/amazon-ecr-login "no basic auth credentials"Fix aws-actions/amazon-ecr-login "no basic auth credentials" caused by missing or unconfigured AWS credential…
GitHub Actions configure-aws-credentials "Credentials could not be loaded, no provider"Fix aws-actions/configure-aws-credentials "Credentials could not be loaded" with no provider - neither static…
azure/setup-helm "chart version not found" / version resolution failureFix azure/setup-helm failing to resolve a pinned Helm version that does not exist or is unreachable.