https://github.com/seporaitis/awscli-plugin-credential-mfa
awscli now asks for token code when used with MFA enabled IAM accounts.
https://github.com/seporaitis/awscli-plugin-credential-mfa
aws aws-cli aws-cli-plugins aws-cli-utilities cli cli-tool cloud-security mfa multifactor-authentication plugin python security
Last synced: about 1 month ago
JSON representation
awscli now asks for token code when used with MFA enabled IAM accounts.
- Host: GitHub
- URL: https://github.com/seporaitis/awscli-plugin-credential-mfa
- Owner: seporaitis
- License: apache-2.0
- Created: 2018-08-18T14:01:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T17:30:10.000Z (about 4 years ago)
- Last Synced: 2025-03-23T20:11:34.819Z (2 months ago)
- Topics: aws, aws-cli, aws-cli-plugins, aws-cli-utilities, cli, cli-tool, cloud-security, mfa, multifactor-authentication, plugin, python, security
- Language: Python
- Size: 19.5 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE
Awesome Lists containing this project
README
=============================
awscli-plugin-credential-mfa
=============================.. image:: https://img.shields.io/pypi/v/awscli-plugin-credential-mfa.svg
:target: https://pypi.python.org/pypi/awscli-plugin-credential-mfa.. image:: https://img.shields.io/travis/seporaitis/awscli-plugin-credential-mfa/master.svg
:target: https://travis-ci.org/seporaitis/awscli-plugin-credential-mfaAutomatically asks for MFA token key to retrieve temporary credentials.
Installation and Usage
----------------------Install the plugin:
.. code-block:: sh
pip install awscli-plugin-credential-mfa
Enable the plugin:
.. code-block:: sh
aws configure set plugins.credentials awscli_plugin_credential_mfa
Assuming your IAM user has `MFA enabled `_ and credentials set up, you also need to set ``mfa_serial`` and
``source_profile`` in the configuration. Below are instructions for profile ``default``, adjust as
appropriate.. code-block:: ini
[default]
mfa_serial = arn:aws:iam::123456789012:mfa/iam-user-name
source_profile = default