LinuxCommandLibrary
GitHub F-Droid Google 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

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

Source code · Homepage · Documentation

Copied to clipboard
Kai

AltStyle によって変換されたページ (->オリジナル) /