A collection of high-performance, standalone CLI utilities designed to extend and simplify your daily AWS workflows. These tools bridge the gap between complex aws cli commands and common developer tasks like MFA authentication, role assumption, and identity verification.
This suite adds specialized commands to your toolkit:
-
whoami: Quickly identifies the current IAM identity, account ID, and region. -
mfa: Streamlines the generation of temporary session tokens using a multi-factor authentication device. -
assume-role: Simplifies switching between AWS accounts and IAM roles with automatic environment variable management. -
myip: Instantly retrieves your current public IP address (crucial for updating Security Group ingress rules). -
verify: Validates your current credentials and connection to ensure your environment is "cloud-ready."
awscli-addons
├── awscli_addons/ # Core Python package
│ ├── cli.py # Main entry point
│ └── commands/ # Individual command implementations
├── tools/
│ ├── build.sh # Script for creating standalone binaries
│ └── installer.sh # Quick-install script for users
├── pyproject.toml # Dependency and package management
└── docs/TODO.md # Future roadmap and pending featuresUse our hosted installer to automatically detect your OS and Architecture.
| Mode | Command |
|---|---|
| Auto | curl -sSL https://raw.githubusercontent.com/MaksymLeus/awscli-addons/main/tools/installer.sh | bash |
| Force Binary | curl -sSL https://raw.githubusercontent.com/MaksymLeus/awscli-addons/main/tools/installer.sh | BINARY_CMD=true bash |
| Force Python | curl -sSL https://raw.githubusercontent.com/MaksymLeus/awscli-addons/main/tools/installer.sh | PYTHON_ONLY=true bash |
Prerequisites: git and python 3.11+ (for Python mode).
curl -sSL https://raw.githubusercontent.com/MaksymLeus/awscli-addons/main/tools/installer.sh | VERSION=v1.1.2 bashDownload the appropriate binary for your platform from the Releases page:
# Example for Linux AMD64
wget https://github.com{VERSION}/awscli-addons-linux-amd64
chmod +x awscli-addons-linux-amd64
sudo mv awscli-addons-linux-amd64 /usr/local/bin/awscli-addons
Once installed, you can use the commands directly or as an AWS CLI alias.
# Check your current identity
awscli-addons whoami
# Generate MFA session
# Prompts for code if not provided; works with profiles
awscli-addons mfa --profile default --mfa-code 123456
# Get your public IP for Security Group rules
awscli-addons myipThe installer automatically configures an AWS CLI alias for you. Even if you install the official AWS CLI after these addons, the integration will be ready to use.
# Use it like a native AWS command
aws addons whoami
aws addons mfa
aws addons myipHow it works: The installer adds a persistent alias to your ~/.aws/cli/alias configuration, mapping aws addons directly to your awscli-addons binary.
To build the project from source or add new commands:
-
Install dependencies:
pip install . -
Add a command:
Create a new
.pyfile inawscli_addons/commands/and register it incli.py. -
Build standalone binaries:
./tools/build.sh
# Example: Check whoami (mounting your local AWS credentials)
docker run --rm -v ~/.aws:/root/.aws awscli-addons whoami