AWS CLI Cheat Sheet/Set profile region

Set a config value for a profile.

Section: Configuration and Profiles

Set profile region

bash
bash
aws configure set region us-west-2 --profile prod
Explanation

Writes a value to the named profile in the shared config file.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Configuration and Profiles
Get configured region
Read a config value from a profile.
OpenIn sheetbashsame section
Run interactive configure
Set credentials, region, and output format interactively.
OpenIn sheetbashsame section
List current config values
Show the currently resolved config values.
OpenIn sheetbashsame section
List configured profiles
Show the names of configured profiles.
OpenIn sheetbashsame section
Configure IAM Identity Center (SSO)
Interactively create an SSO-backed profile.
OpenIn sheetbashsame section
Log in with SSO
Obtain an SSO session for a named profile.
OpenIn sheetbashsame section