Registry / aws / awscli

awscli

JSON →
library1.46.0pypypi✓ verified 25d ago

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
INSTALL
IMPORT
SIG · AWSCLI
A
awscli
awspythonv1.46.0
Install
5.7s avg
Import
50ms
Disk
162MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.46.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.040s · 181.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.7s · import 0.040s · 183MB
162MB installed
● package 162MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

awscli
import awscli
Ensure the AWS CLI is installed and accessible in your environment

This script configures the AWS CLI and lists all S3 buckets in your AWS account.

import os # Configure AWS CLI os.system('aws configure') # Example: List S3 buckets os.system('aws s3 ls')
aws --version
Debug
Known issues
breakingAWS 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.
affects: 2.x.x
deprecatedAWS 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.
affects: 1.x.x
gotchaInstalling 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.
affects: All
gotchaAWS CLI commands may change or be deprecated over time.
fix
Regularly consult the AWS CLI command reference to ensure your scripts use current commands.
affects: All
Errors
Common errors & fixes
command not found: aws
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.
Unable to locate credentials
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.
An error occurred (AccessDenied) when calling the <OPERATION-NAME> operation: Access Denied
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.
You must specify a region.
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.
fatal error: Could not connect to the endpoint URL: "https://..."
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.
Upgrade
Version history
1.46.0latest on PyPI · released Aug 5, 2026
Audit
Dependencies
botocorerequiredProvides the low-level functionality shared between the Python SDK and the AWS CLI
Agent activity
20 hits · last 30 days
node
16
OpenAI (training)
1
Resources