Skip to main content

Execute AWS CLI across multiple profiles in one go

Project description

Avatar

Build Status Security Status Published Version

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

Developer's Guide

Build reports:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpaws-0.10.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

mpaws-0.10.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file mpaws-0.10.0.tar.gz.

File metadata

  • Download URL: mpaws-0.10.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for mpaws-0.10.0.tar.gz
Algorithm Hash digest
SHA256 79eb55f66fba03fac65fbdacb816639228ea279ef5cebe519410d69781107482
MD5 f863c4e7f4d02c61196077d0d7353b55
BLAKE2b-256 ea2d57f61d3657ac91b4a26de54794e50ef26ba53eacd4ee4a3cf539d24e3e71

See more details on using hashes here.

Provenance

File details

Details for the file mpaws-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: mpaws-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for mpaws-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dacec7c4809772cf72ac29749243d94a01e98ffe5f15c744d7e71e781a793ea9
MD5 579d9d0ab80b0aa4739eea5131b9b0ca
BLAKE2b-256 6a7d986e028bd5cbfe4952186c18c8ae9e5b55fe258433bcb2347dd0cf2745ac

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page