AWS

General

Help

aws help

Show the current AWS CLI version

aws --version

This command displays the installed version of the AWS Command Line Interface (CLI) tools on your system.

Configure your AWS Key ID, AWS Secret, default region and default output format for the AWS CLI

aws configure

This command sets up your credentials and preferences for the AWS CLI. It prompts you to enter your AWS Access Key ID, Secret Access Key, default region, and preferred output format. These settings are stored securely on your local machine and used by the AWS CLI to interact with AWS services.

Important

Avoid storing your Secret Access Key directly in the configuration file. It's recommended to use more secure credential management methods like environment variables or AWS Single Sign-On.

Configure using the profile name.

aws configure --profile <profile_name>

By default, the list of profile is stored in ~/.aws.credentials (Linux and MacOS)

On this page