back to home

aws / aws-cli

Universal Command Line Interface for Amazon Web Services

16,820 stars
4,500 forks
619 issues
PythonShellBatchfile

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing aws/aws-cli in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/aws/aws-cli)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

aws-cli ======= .. image:: https://github.com/aws/aws-cli/actions/workflows/run-tests.yml/badge.svg :target: https://github.com/aws/aws-cli/actions/workflows/run-tests.yml :alt: Build Status This package provides a unified command line interface to Amazon Web Services. Jump to: • __ • __ • __ Entering Maintenance Mode on July 15, 2026 ------------------------------------------ We __ the upcoming **end-of-support for the AWS CLI v1**. We recommend that you migrate to __. For dates, additional details, and information on how to migrate, please refer to the linked announcement. Getting Started --------------- This README is for the AWS CLI version 1. If you are looking for information about the AWS CLI version 2, please visit the __. Requirements ~~~~~~~~~~~~ The aws-cli package works on Python versions: • 3.9.x and greater • 3.10.x and greater • 3.11.x and greater • 3.12.x and greater • 3.13.x and greater • 3.14.x and greater Notices ~~~~~~~ On 2025-04-22, support for Python 3.8 ended for the AWS CLI. This follows the Python Software Foundation __ for the runtime which occurred on 2024-10-07. For more information, see this __. *Attention!* *We recommend that all customers regularly monitor the* __ *for any important security bulletins related to aws-cli.* Maintenance and Support for CLI Major Versions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The AWS CLI version 1 was made generally available on 09/02/2013 and is currently in the full support phase of the availability life cycle. For information about maintenance and support for SDK major versions and their underlying dependencies, see the __ section in the *AWS SDKs and Tools Shared Configuration and Credentials Reference Guide*. Installation ~~~~~~~~~~~~ Installation of the AWS CLI and its dependencies use a range of packaging features provided by pip and setuptools . To ensure smooth installation, it's recommended to use: • pip : 9.0.2 or greater • setuptools : 36.2.0 or greater The safest way to install the AWS CLI is to use __ in a virtualenv : :: $ python -m pip install awscli or, if you are not installing in a virtualenv , to install globally: :: $ sudo python -m pip install awscli or for your user: :: $ python -m pip install --user awscli If you have the aws-cli package installed and want to upgrade to the latest version, you can run: :: $ python -m pip install --upgrade awscli This will install the aws-cli package as well as all dependencies. .. note:: On macOS, if you see an error regarding the version of six that came with distutils in El Capitan, use the --ignore-installed option: :: $ sudo python -m pip install awscli --ignore-installed six On Linux and Mac OS, the AWS CLI can be installed using a __. The AWS CLI can also be installed on Windows via an __. If you want to run the develop branch of the AWS CLI, see the __ section of the contributing guide. See the __ section of the AWS CLI User Guide for more information. Configuration ~~~~~~~~~~~~~ Before using the AWS CLI, you need to configure your AWS credentials. You can do this in several ways: • Configuration command • Environment variables • Shared credentials file • Config file • IAM Role The quickest way to get started is to run the aws configure command: :: $ aws configure AWS Access Key ID: MYACCESSKEY AWS Secret Access Key: MYSECRETKEY Default region name [us-west-2]: us-west-2 Default output format [None]: json To use environment variables, do the following: :: $ export AWS_ACCESS_KEY_ID= $ export AWS_SECRET_ACCESS_KEY= To use the shared credentials file, create an INI formatted file like this: :: [default] aws_access_key_id=MYACCESSKEY aws_secret_access_key=MYSECRETKEY [testing] aws_access_key_id=MYACCESSKEY aws_secret_access_key=MYSECRETKEY and place it in ~/.aws/credentials (or in %UserProfile%\.aws/credentials on Windows). If you wish to place the shared credentials file in a different location than the one specified above, you need to tell aws-cli where to find it. Do this by setting the appropriate environment variable: :: $ export AWS_SHARED_CREDENTIALS_FILE=/path/to/shared_credentials_file To use a config file, create an INI formatted file like this: :: [default] aws_access_key_id= aws_secret_access_key= # Optional, to define default region for this profile. region=us-west-1 [profile testing] aws_access_key_id= aws_secret_access_key= region=us-west-2 and place it in ~/.aws/config (or in %UserProfile%\.aws\config on Windows). If you wish to place the config file in a different location than the one specified above, you need to tell the AWS CLI where to find it. Do this by setting the appropriate environment variable: :: $ export AWS_CONFIG_FILE=/path/to/config_file As you can see, you can have multiple profiles defined in both the shared credentials file and the configuration file. You can then specify which profile to use by using the --profile option. If no profile is specified the default profile is used. In the config file, except for the default profile, you **must** prefix each config section of a profile group with profile . For example, if you have a profile named "testing" the section header would be [profile testing] . The final option for credentials is highly recommended if you are using the AWS CLI on an EC2 instance. __ are a great way to have credentials installed automatically on your instance. If you are using IAM Roles, the AWS CLI will find and use them automatically. In addition to credentials, a number of other variables can be configured either with environment variables, configuration file entries, or both. See the __ for more information. For more information about configuration options, please refer to the __. You can access this topic from the AWS CLI as well by running aws help config-vars . Basic Commands ~~~~~~~~~~~~~~ An AWS CLI command has the following structure: :: $ aws [options and parameters] For example, to…