You must specify a region AWS Origin: Platform & cloud OSI layer 7 · Application Last updated 12 Oct 2026

You must specify a region. You can also configure your region by running "aws configure" (NoRegionError)

No region is configured for the CLI/SDK call.

Exact message you may see You must specify a regionRegion is missingConfigError: Missing region in config
Seen on: AWS

Meaning

The region comes from --region, AWS_REGION/AWS_DEFAULT_REGION, or the profile in ~/.aws/config. CI jobs, containers and new profiles often lack it. SDKs raise NoRegionError / “Region is missing”.

Common causes

  • Profile without region
  • No AWS_REGION in CI/container
  • Using a named profile but region set only on default

⚡ Quick fix

  1. Pass --region or set AWS_REGION
  2. aws configure set region eu-west-1 --profile name
  3. Set region in SDK client constructors

Detailed fix by platform

Shell

  1. bash
    aws configure set region eu-west-1 --profile prod
    export AWS_REGION=eu-west-1

How to diagnose

  1. Sources — aws configure list
  2. Profile — Which profile is active?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

1000 — Cloudflare Error 1000: DNS points to prohibited IP (Cloudflare)10001046 — MySQL ERROR 1046 (3D000): No database selected (MySQL)10461049 — MySQL ERROR 1049 (42000): Unknown database 'x' (MySQL)10491153 — MySQL ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes (MySQL)11533D000 — FATAL: database "x" does not exist (PostgreSQL)3D000413 — HTTP 413 Content Too Large (Request Entity Too Large) (HTTP)413AADSTS90002 — AADSTS90002: Tenant 'x' not found (Azure)AADSTS90002AH00558 — Apache: AH00558: apache2: Could not reliably determine the server's fully qualified domain name (Nginx / Apache)AH00558You must …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.