AWS
The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services.
Installation
- Type this in Terminal:
pip install awscli
Configuration using CLI
Type this in Terminal:
aws configure
It will prompt you for 4 pieces of information:
- AWS Access Key ID
- AWS Secret Access Key
- Default region name
- Default output format
While output format has 3 options:
- json
- table
- text
- If you have multiple AWS accounts, you can configure additional profile like this:
aws configure --profile user2
Configuration and Credential Files
- Instead of using the CLI, you can modify the credentials and config files manually.
The files generated by the CLI for the profile look like this:
~/.aws/credentials
[default] aws_access_key_id=AKIAIOSFODNN7EXAMPLE aws_secret_access_key=wJalrXUtnFEMIaK7MDENGabPxRfiCYEXAMPLEKEY
~/.aws/config
[default] region=us-west-2 output=json
Reference
Configuring the AWS Command Line Interface - AWS Command Line Interface