All Projects → ryansonshine → aws-sso-creds-helper

ryansonshine / aws-sso-creds-helper

Licence: MIT license
A command line util for using SSO credentials with AWS SDK on AWS CLI v2 until native support is released

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to aws-sso-creds-helper

terraform-aws-cli
Minimal & lightweight docker image including AWS and Terraform CLI
Stars: ✭ 41 (+20.59%)
Mutual labels:  aws-cli, awscli
Awsconsolerecorder
Records actions made in the AWS Management Console and outputs the equivalent CLI/SDK commands and CloudFormation/Terraform templates.
Stars: ✭ 1,152 (+3288.24%)
Mutual labels:  aws-sdk, aws-cli
Hello-AWS-Data-Services
Sample code for AWS data service and ML courses on LinkedIn Learning
Stars: ✭ 144 (+323.53%)
Mutual labels:  aws-sdk, aws-cli
Awesome Aws
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome.
Stars: ✭ 9,895 (+29002.94%)
Mutual labels:  aws-sdk, aws-cli
Limes
Limes provides an easy work flow with MFA protected access keys, temporary credentials and access to multiple roles/accounts.
Stars: ✭ 67 (+97.06%)
Mutual labels:  aws-sdk, aws-cli
cdk-multi-profile-plugin
Adds multi profile/account, mfa and aws sso support to cdk apps
Stars: ✭ 41 (+20.59%)
Mutual labels:  sso, aws-sso
aws-kinesis-consumer
Consume an AWS Kinesis Data Stream to look over the records from a terminal.
Stars: ✭ 23 (-32.35%)
Mutual labels:  aws-cli
cookbook
VueJS + NodeJS Evergreen Cookbook
Stars: ✭ 440 (+1194.12%)
Mutual labels:  sso
XSSO
统一单点登陆验证服务
Stars: ✭ 14 (-58.82%)
Mutual labels:  sso
authentik
The authentication glue you need.
Stars: ✭ 2,941 (+8550%)
Mutual labels:  sso
single-sign-on-out-jwt-cookie-redis-java-springboot-freemarker
Single Sign Out, Scalable Authentication Example with JSON Web Token (JWT), Spring Boot and Redis
Stars: ✭ 15 (-55.88%)
Mutual labels:  sso
mlflow-tracking-server
MLFLow Tracking Server based on Docker and AWS S3
Stars: ✭ 59 (+73.53%)
Mutual labels:  aws-cli
sign-in-with-ethereum
Minimal example of sign in with Ethereum. Compatible with web3 browsers.
Stars: ✭ 25 (-26.47%)
Mutual labels:  sso
awslogin
Login to the AWS management console.
Stars: ✭ 17 (-50%)
Mutual labels:  aws-cli
aws-missing-tools
Random tools I've written to make life easier using AWS, namely aws-choose-profile and aws-mfa-login
Stars: ✭ 46 (+35.29%)
Mutual labels:  aws-cli
kube-tools-aws
A lightweight Docker image with various CLI tooling for working with Kubernetes.
Stars: ✭ 26 (-23.53%)
Mutual labels:  aws-cli
s3cli
Command line tool for S3
Stars: ✭ 21 (-38.24%)
Mutual labels:  aws-cli
passport
The Laravel passport compatible oauth extension for your Flarum forum.
Stars: ✭ 24 (-29.41%)
Mutual labels:  sso
flixctl
A toolkit for controlling the infrastructure necessary for a true MaSaS (Movies and Shows as a Service) architecture.
Stars: ✭ 43 (+26.47%)
Mutual labels:  aws-sdk
webprofile-ref-project
A example project to demonstrate implementing SAML Web browser SSO profile using OpenSAML V2
Stars: ✭ 23 (-32.35%)
Mutual labels:  sso

AWS SSO Credentials Helper

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

All Contributors

When using aws sso login on AWS CLI v2 as of July 27th, 2020, the credentials are stored so they will work with the CLI itself (v2) but don't work on the AWS SDKs and other tools that expect credentials to be readable from ~/.aws/credentials (v1).

This package aims to streamline updating the AWS credentials file for AWS SSO users by updating/creating the corresponding profile section in ~/.aws/credentials with temporary role credentials. Once a solution is implemented in AWS CLI v2, this repo will be archived.

Install

npm install -g aws-sso-creds-helper

Usage

Usage: ssocreds [options]

Options:
  -V, --version            output the version number
  -p, --profile <profile>  profile to use for obtaining sso credentials (default: "default")
  -d, --debug              enables verbose logging (default: false)
  -v, --verbose            enables verbose logging (default: false)
  -u, --use-proxy          flag for the aws sdk to use HTTPS_PROXY found in env (default: false)
  -h, --help               display help for command

Example:

$ ssocreds -p my-profile

[aws-sso-creds-helper]: Getting SSO credentials for profile my-profile
[aws-sso-creds-helper]: Successfully loaded SSO credentials for profile my-profile

or create an alias in your shell containing

alias awsmyprofile="ssocreds -p my-profile"

or combine with a profile switching script if you use multiple profiles to switch profiles and then grab the credentials in one command

alias awsmyprofile="awsp my-profile && ssocreds -p my-profile"

Contributors

Thanks goes to these wonderful people (emoji key):


Ryan Sonshine

💻

Steven Tobias

💻

sclarson

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].