Skip to content

webdestroya/aws-sso

Repository files navigation

aws-sso

Writes credentials to your ~/.aws/credentials file that were created via SSO configurations. This allows you to run old applications that rely on AccessKey/SecretKey credentials while still allowing you to get those credentials via SSO.

Installation

brew install webdestroya/tap/awssso

Usage

Warning

This will be modifying your AWS credentials file. Please create a backup before using this program just in case.

Pull credentials for the listed profiles and update the credentials file

awssso sync mycompany-staging mycompany-production

Detailed help can be viewed by passing --help to any command.

Shell Alternative

You don't even need this program, you can do this entirely within the awscli itself. (Assuming your program can use environment variables instead of aws credentials file.)

# Login to your profile and get fresh credentials
aws sso login --profile something

# Set the credentials env vars
eval $(aws configure export-credentials --profile something --format env)

# Subsequent AWS commands will use the creds above
aws sts get-caller-identity

About

Utility to make using AWS SSO a little less annoying

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages