The AWS CLI provides one terminal interface to configure credentials and call Amazon Web Services APIs from scripts and interactive use.
Overview
The AWS CLI packages access to Amazon Web Services into a single command-line program. It runs on supported Python versions and is distributed as AWS CLI v2 installers for common desktop and server platforms.
Before use you configure credentials and defaults through interactive setup, environment variables, shared credentials files, config profiles, or IAM roles on EC2 instances. Profiles, regions, output formats, and many other settings can be set per shell or in configuration files.
Commands mirror AWS service APIs, including global services that automatically target the correct endpoint. Complex operations accept JSON structures inline or via file URLs. Tab completion helpers are included for bash, zsh, and tcsh once enabled in your shell startup.
The tool supports parameter validation toggles, custom CA bundles, metadata timeouts for instance credentials, and configurable timestamp formatting. Release notes document minor and patch updates as new services, operations, and fixes land in each build.
Key features
- Single CLI for AWS service APIs
- Profile and region configuration
- JSON and file-based parameters
- Shell tab completion support
- IAM role credentials on EC2
- Multiple credential storage methods
- Configurable output formats
- Global endpoint handling for select services
Use cases
- Scripting S3 and EC2 operations
- Administrating AWS from a terminal
- Automating deployments in CI
- Exploring new AWS service APIs