synaptic-cl / jumpcloud_aws

Command to generate credentials for aws-cli when you have SAML authentication with JumpCloud
MIT License
6 stars 3 forks source link

Saml to AWS Using JumpCloud

Command to generate credentials for aws-cli when you have SAML authentication with JumpCloud. The credentials will be stored in $HOME/.aws/credentials.

Source : https://s3.amazonaws.com/awsiammedia/public/sample/SAMLAPICLIADFS/samlapi_formauth.py

Referenced from : https://aws.amazon.com/blogs/security/how-to-implement-a-general-solution-for-federated-apicli-access-using-saml-2-0

Build Status

Requirements

Install

pip3 install git+git://github.com/synaptic-cl/jumpcloud_aws.git@v0.1.5#egg=jumpcloud_aws

If you want to use Docker instead, see the "Use With Docker" section below.

Reinstall

pip3 install git+git://github.com/synaptic-cl/jumpcloud_aws.git@v0.1.5#egg=jumpcloud_aws --upgrade

Use Command

jumpcloud_aws
# or add params
jumpcloud_aws --email [EMAIL] --password [PASSWORD] --region 0

for know the available regions:

jumpcloud_aws --help

Use With Docker

# Build
docker build -t saml .
# Run
docker run --rm -it -v $(pwd)/jumpcloud_aws:/src/jumpcloud_aws -v $HOME/.aws/credentials:/root/.aws/credentials saml

Developer

Requirements

# Build
docker build -t saml .
# Run
docker run --rm -it -v $(pwd)/jumpcloud_aws:/src/jumpcloud_aws -v $HOME/.aws/credentials:/root/.aws/credentials saml

TODO