Generates AWS credentials for roles using STS
Project description
Generates AWS credentials for roles using STS and writes them to `~/.aws/credentials`
Usage
Simply pipe a SAML assertion into awssaml
# create credentials from saml assertion
$ oktaauth -u joebloggs | aws_role_credentials saml –profile dev
Or for assuming a role using an IAM user:
# create credentials from an iam user
$ aws_role_credentials user arn:aws:iam::111111:role/dev joebloggs-session –profile dev
Options
- --profile
Use a specific profile in your credential file (e.g. Development). Defaults to sts.
- --region
The region to use. Overrides config/env settings. Defaults to us-east-1.
Thanks
Thanks to Quint Van Deman of AWS for demonstrating how to do this. https://blogs.aws.amazon.com/security/post/Tx1LDN0UBGJJ26Q/How-to-Implement-Federated-API-and-CLI-Access-Using-SAML-2-0-and-AD-FS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for aws_role_credentials-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9f87730408f5b3dec0f0ce0982fe1e78520d06593d16ad1547f503b5de4b9fa |
|
MD5 | 7c1e52ae9e69c74dad09af79ff66bb44 |
|
BLAKE2b-256 | 04d8226aede494507d415e672cd6d82d1ab91bb0813fc9a2804aee24e09517a6 |
Hashes for aws_role_credentials-0.2.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e2e663b2f1866f47d4816a7c6e17414d6cb169e15b6bbe154e0c2fdaeb74c03 |
|
MD5 | 94eb65007232ea97793fd2329ded0ca1 |
|
BLAKE2b-256 | 22bfd907b49e9564cc89ff044ea716dd937e31896fd7c97230753d43d0664411 |
Hashes for aws_role_credentials-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6797ed0350bb8b083ec298124563d9a72ea22f7c1973afe170861d44cf8e50 |
|
MD5 | cbe923f329bb084804e1a4664dd56b50 |
|
BLAKE2b-256 | 05381849f302e6c9f394bff48ad44262c6b1cdcd7a4617381bd633a2c8b9c7e0 |
Hashes for aws_role_credentials-0.2.0-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e476138bafc19fe73ab1c6cff6a532c155a76451a9df04881a573437cf92ad4 |
|
MD5 | df72d469cd6061569c9484b2e5a9d27b |
|
BLAKE2b-256 | 0c645e0a5879a4427acab9028bdb447f283a9cce1dd7a45ef753183dae6643a5 |