LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aws-configure

Set up AWS CLI credentials, region, and output format.

TLDR

Configure default credentials
$ aws configure
copy
Configure specific profile
$ aws configure --profile [production]
copy
Set individual value
$ aws configure set region [us-west-2]
copy
Get configuration value
$ aws configure get region
copy
List all profiles
$ aws configure list-profiles
copy
Configure an SSO session interactively
$ aws configure sso
copy

SYNOPSIS

aws configure [options] [command]

DESCRIPTION

aws configure manages AWS CLI configuration including credentials, default region, and output format. It stores settings in ~/.aws/credentials and ~/.aws/config files.The tool provides an interactive interface for setting up AWS access or programmatic access to individual configuration values.

PARAMETERS

--profile name

Configure specific named profile

CONFIGURATION

~/.aws/credentials

Stores access key ID and secret access key for each named profile.
~/.aws/config
Stores region, output format, and other settings for each named profile.

SUBCOMMANDS

list

Show current configuration with the source of each value
get key
Get a single configuration value
set key value
Set a single configuration value
import --csv file
Import credentials from an IAM-generated CSV file
list-profiles
List all configured profiles
sso
Interactively configure an AWS IAM Identity Center (SSO) profile
sso-session
Interactively configure a reusable SSO session
add-model
Add a custom service model to the CLI

CONFIGURATION VALUES

aws_access_key_id

AWS access key
aws_secret_access_key
AWS secret key
region
Default AWS region
output
Output format (json, text, table, yaml)

WORKFLOW

Interactive setup:

$ aws configure
copy

INSTALL

sudo dnf install aws
copy
sudo pacman -S aws-cli
copy
sudo apk add aws-cli
copy
sudo zypper install aws-cli
copy

CAVEATS

Credentials stored in plain text. Use IAM roles on EC2 instead of credentials when possible. Never commit credentials to version control. Consider using aws-vault for secure credential management. Use --profile to avoid overwriting default credentials.

HISTORY

aws configure was introduced with the AWS CLI in 2013 as the standard way to set up AWS credentials and configuration.

SEE ALSO

aws(1), aws-vault(1), aws-sso(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid