Execute AWS CLI across multiple profiles in one go
Project description
mpaws
mpaws is a Python CLI for running an AWS command across multiple profiles in one go.
This is a time-saver when you are managing dozens of AWS accounts and need to run the same command across all of them.
Installation
pip3 install mpaws
Usage
Set an environment variable MPAWS_PROFILES
, then run mpaws
command:
export MPAWS_PROFILES=profile1,profile2,profile3,profile4,profile5
mpaws s3 ls
The above command will run aws s3 ls
command for AWS profile profile1
, profile2
, up to profile5
. A bit like this:
AWS_PROFILE=profile1 aws s3 ls
AWS_PROFILE=profile2 aws s3 ls
Each run will also carry over the environment variables available when the original mpaws
command was run.
Configuration
Ensure that the profiles specified in MPAWS_PROFILES
are already configured in credential file.
Colophon
Build reports:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.