Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.
/ jumpcloud_aws Public archive

Command to generate credentials for aws-cli when you have SAML authentication with JumpCloud

License

Notifications You must be signed in to change notification settings

synaptic-cl/jumpcloud_aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • python 3.6
  • pip
  • awscli

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

  • Docker > 18.03
# 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

  • Tests
  • Add validation when the selected region doesn't exist

About

Command to generate credentials for aws-cli when you have SAML authentication with JumpCloud

Resources

License

Stars

Watchers

Forks

Packages

No packages published