AWS Command Line Interface (AWS CLI)
raw JSON → 1.44.68 verified Tue May 12 auth: no python install: verified quickstart: verified
The AWS Command Line Interface (AWS CLI) is a tool that enables users to interact with AWS services using command-line commands. The current version is 1.44.68, with regular updates to introduce new features and address issues.
pip install awscli Common errors
error command not found: aws ↓
cause The AWS CLI executable is not in your system's PATH environment variable, or the installation was incomplete.
fix
Add the AWS CLI installation directory (e.g., ~/.local/bin or /usr/local/bin) to your system's PATH and restart your terminal, or reinstall the AWS CLI.
error Unable to locate credentials ↓
cause The AWS CLI cannot find valid authentication credentials in the expected locations (e.g., ~/.aws/credentials, environment variables, IAM roles).
fix
Run
aws configure to set up your AWS Access Key ID, AWS Secret Access Key, default region, and output format. Alternatively, set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. error An error occurred (AccessDenied) when calling the <OPERATION-NAME> operation: Access Denied ↓
cause The authenticated AWS IAM user or role lacks the necessary permissions to perform the requested AWS operation, or Multi-Factor Authentication (MFA) is required but not provided.
fix
Verify the IAM policies attached to your user or role to ensure they grant the required permissions. If MFA is enabled, generate and use temporary credentials with an MFA token.
error You must specify a region. ↓
cause The AWS CLI requires an AWS region to execute commands, but no default region is configured, or it's not explicitly provided in the command.
fix
Configure a default region by running
aws configure set region <your-region>, set the AWS_DEFAULT_REGION environment variable, or include --region <your-region> in your AWS CLI command. error fatal error: Could not connect to the endpoint URL: "https://..." ↓
cause The AWS CLI is unable to establish a network connection to the specified AWS service endpoint, often due to an incorrect region, network connectivity issues (firewall, proxy), or an invalid endpoint URL.
fix
Verify your configured region (e.g.,
us-east-1), check your network connectivity, firewall rules, and proxy settings. Ensure your AWS CLI is up to date. Warnings
breaking AWS CLI v2 introduced breaking changes compared to v1, including different default output formats and authentication mechanisms. ↓
fix Review the AWS CLI v2 migration guide to update scripts and configurations accordingly.
deprecated AWS CLI v1 is in maintenance mode, with no new features being added. ↓
fix Consider upgrading to AWS CLI v2 to take advantage of new features and improvements.
gotcha Installing AWS CLI via pip may lead to version conflicts with other Python packages. ↓
fix Use the official AWS CLI installers for your operating system to avoid dependency issues.
gotcha AWS CLI commands may change or be deprecated over time. ↓
fix Regularly consult the AWS CLI command reference to ensure your scripts use current commands.
Install compatibility verified last tested: 2026-05-12
python os / libc status wheel install import disk
3.10 alpine (musl) - - 0.00s 85.7M
3.10 slim (glibc) - - 0.00s 87M
3.11 alpine (musl) - - 0.00s 90.4M
3.11 slim (glibc) - - 0.00s 92M
3.12 alpine (musl) - - 0.00s 81.7M
3.12 slim (glibc) - - 0.00s 83M
3.13 alpine (musl) - - 0.00s 81.4M
3.13 slim (glibc) - - 0.00s 83M
3.9 alpine (musl) - - 0.00s 85.2M
3.9 slim (glibc) - - 0.00s 86M
Imports
- awscli
import awscli
Quickstart verified last tested: 2026-04-23
import os
# Configure AWS CLI
os.system('aws configure')
# Example: List S3 buckets
os.system('aws s3 ls')