Skip to main content

AWS CLI improvement.

Project description

Documentation Status https://github.com/MacHu-GWU/awscli_mate-project/workflows/CI/badge.svg https://codecov.io/gh/MacHu-GWU/awscli_mate-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/awscli_mate.svg https://img.shields.io/pypi/l/awscli_mate.svg https://img.shields.io/pypi/pyversions/awscli_mate.svg https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Document-blue.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Source_Code-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to awscli_mate Documentation

awscli_mate improves the original AWS CLI.

Make sure you have done:

pip install awscli_mate
pip install boto3
pip install fire

Set AWS Profile as Default

It is very common that you wants to set a profile as the default when using a tools that doesn’t support explicit --profile ... argument. awscli_mate provides a command to do this for you. It will update your .aws/config and .aws/credentials file and set the default profile to the one you specified.

Example:

awscli_mate set_profile_as_default --profile=your_profile

One Click MFA auth

Based on this AWS re:Post How do I use an MFA token to authenticate access to my AWS resources through the AWS CLI?, you have to run aws sts get-session-token ... command to get some token, and manually copy and paste them to either environment variable or .aws/credentials file. This is a bit tedious. awscli_mate provides a one-click command to do this for you. Basically, it will use a base profile to get the token, let’s say it is your_profile, and automatically create / update a new profile called your_profile_mfa in your .aws/config and .aws/credentials file. So you can keep using the your_profile_mfa in your application.

Example:

awscli_mate mfa_auth --profile=your_profile --mfa_code=123456 --hours=12 --overwrite_default=True

Note that this command also automatically set the MFA profile as default profile. If you don’t want to set the your_profile_mfa as default profile automatically, you can just remove the --overwrite_default part.

Install

awscli_mate is released on PyPI, so all you need is:

$ pip install awscli_mate

To upgrade to latest version:

$ pip install --upgrade awscli_mate

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

awscli_mate-0.3.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

awscli_mate-0.3.1-py2.py3-none-any.whl (10.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file awscli_mate-0.3.1.tar.gz.

File metadata

  • Download URL: awscli_mate-0.3.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.11

File hashes

Hashes for awscli_mate-0.3.1.tar.gz
Algorithm Hash digest
SHA256 adb7724086ee00925738417d6567271b910f986938dbc870a67041eefab9f297
MD5 918693ea05fc0c079e7411d4d951d876
BLAKE2b-256 2ea8269f10b9293891a6b33d6e850448aa9a6f291043d627028ab267d09fac55

See more details on using hashes here.

File details

Details for the file awscli_mate-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for awscli_mate-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 720fc744cb1a1df6fa0f7a072d3a6177757bdc207b1813b962133fa4514d4922
MD5 80c2c356b19c451d35448c739ca54d2d
BLAKE2b-256 86863996f147864fb816b0f050b75cd978d7836607358ecdfff52a4e6a61d689

See more details on using hashes here.

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