Skip to main content

A CLI tool to assume a role on AWS using MFA

Project description

aws-assume-role-otp

AWS Assume Role OTP allows you to assume a role on AWS at the same time it generates the MFA token.

Installation

pip install aws-assume-role-otp

Usage

aws-assume-role-otp

Add role

aws-assume-role-otp --add-role

Remove role

aws-assume-role-otp --remove-role

First time configuration

The first time you run this tool, it will ask you to inform:

  • AWS Access Key ID
  • AWS Secret Access Key
  • Serial MFA Secret. How to register device
  • MFA ARN
  • Roles and profiles

Build locally

pip install build
python -m build
pip install dist/aws_assume_role_otp-0.3-py3-none-any.whl

Changelog

[0.3] - 2023-10-02

Added

  • Allow to add or remove roles

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

aws_assume_role_otp-0.3.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

aws_assume_role_otp-0.3-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

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