An open API service indexing awesome lists of open source software.

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.

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-mfa

Automatically 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