{"id":292,"library":"awscli","title":"AWS Command Line Interface (AWS CLI)","description":"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.","status":"active","version":"1.44.68","language":"python","source_language":"en","source_url":"https://github.com/aws/aws-cli","tags":["AWS","CLI","Cloud","Automation"],"install":[{"cmd":"pip install awscli","lang":"bash","label":"Install AWS CLI using pip"}],"dependencies":[{"reason":"Provides the low-level functionality shared between the Python SDK and the AWS CLI","package":"botocore","optional":false}],"imports":[{"note":"Ensure the AWS CLI is installed and accessible in your environment","symbol":"awscli","correct":"import awscli"}],"quickstart":{"code":"import os\n\n# Configure AWS CLI\nos.system('aws configure')\n\n# Example: List S3 buckets\nos.system('aws s3 ls')","lang":"python","description":"This script configures the AWS CLI and lists all S3 buckets in your AWS account."},"warnings":[{"fix":"Review the AWS CLI v2 migration guide to update scripts and configurations accordingly.","message":"AWS CLI v2 introduced breaking changes compared to v1, including different default output formats and authentication mechanisms.","severity":"breaking","affected_versions":"2.x.x"},{"fix":"Consider upgrading to AWS CLI v2 to take advantage of new features and improvements.","message":"AWS CLI v1 is in maintenance mode, with no new features being added.","severity":"deprecated","affected_versions":"1.x.x"},{"fix":"Use the official AWS CLI installers for your operating system to avoid dependency issues.","message":"Installing AWS CLI via pip may lead to version conflicts with other Python packages.","severity":"gotcha","affected_versions":"All"},{"fix":"Regularly consult the AWS CLI command reference to ensure your scripts use current commands.","message":"AWS CLI commands may change or be deprecated over time.","severity":"gotcha","affected_versions":"All"}],"env_vars":null,"last_verified":"2026-05-12T12:53:29.651Z","next_check":"2026-06-26T00:00:00.000Z","problems":[{"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.","cause":"The AWS CLI executable is not in your system's PATH environment variable, or the installation was incomplete.","error":"command not found: aws"},{"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.","cause":"The AWS CLI cannot find valid authentication credentials in the expected locations (e.g., ~/.aws/credentials, environment variables, IAM roles).","error":"Unable to locate credentials"},{"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.","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.","error":"An error occurred (AccessDenied) when calling the <OPERATION-NAME> operation: Access Denied"},{"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.","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.","error":"You must specify a region."},{"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.","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.","error":"fatal error: Could not connect to the endpoint URL: \"https://...\""}],"ecosystem":"pypi","meta_description":null,"install_score":80,"install_tag":"verified","quickstart_score":80,"quickstart_tag":"verified","pypi_latest":null,"install_checks":{"last_tested":"2026-05-12","tag":"verified","tag_description":"installs cleanly on critical runtimes, fast import, recently tested","results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"85.7M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"87M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"90.4M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"92M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"81.7M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"83M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"81.4M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"83M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"85.2M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0,"mem_mb":0,"disk_size":"86M"}]},"quickstart_checks":{"last_tested":"2026-04-23","tag":"verified","tag_description":"quickstart runs on critical runtimes, recently tested","results":[{"runtime":"python:3.10-alpine","exit_code":0},{"runtime":"python:3.10-slim","exit_code":0},{"runtime":"python:3.11-alpine","exit_code":0},{"runtime":"python:3.11-slim","exit_code":0},{"runtime":"python:3.12-alpine","exit_code":0},{"runtime":"python:3.12-slim","exit_code":0},{"runtime":"python:3.13-alpine","exit_code":0},{"runtime":"python:3.13-slim","exit_code":0},{"runtime":"python:3.9-alpine","exit_code":0},{"runtime":"python:3.9-slim","exit_code":0}]}}