Boto3 session creator for IAM Roles Anywhere
Maintained. Last release 2 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install iam-rolesanywhere-sessionIAM Roles Anywhere Session
This package provides an easy way to create a refreshable boto3 Session with IAM Roles Anywhere, without defining an AWS profile with relevant configuration for IAM roles anywhere.
This package implements the algorithm described here: https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-sign-process.html.
Requirements
- Python 3.9 or later
- Creation and configuration of a trust anchor. See documentation
- Valid X.509 certificate, private key, and optionally a certificate chain file associated with your trust anchor
Install
- From PyPi
pip install iam-rolesanywhere-session
- From source
git clone https://github.com/awslabs/iam-roles-anywhere-session.git
cd iam-roles-anywhere-session
python3 -m pip install ./
Configuration
For this package to work you will need to have at your disposal your certificate and private_key file in a PEM format.
IAMRoleAnywhereSession will take multiple arguments:
| Name | Description |
|---|