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

**Code:** `You must specify a region` · **Category:** AWS · **Seen on:** AWS

No region is configured for the CLI/SDK call.

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/aws/cli-must-specify-a-region)
