1.0.2 • Published 2 years ago

pn-sso v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

This CLI command will replace your default profile credentials with temporary once provided from AWS SSO

Bakground

It is possible to switch profile from the terminal with AWS SSO setup using the aws cli, however this will not support channels where SSO is not supported, such as Serverless.

Fix

This package will run the aws cli command and also replace the default profile in your .aws/credentials folder with the current logged in sso profile, which can then be used like normal.

How to

  1. Make sure you are using AWS CLI v2

  2. Configure your aws sso profiles (more info here)

    aws configure sso
    SSO start URL [None]: https://postnord.awsapps.com/start#/
    SSO Region [None]: eu-west-1
  3. Login via pnsso
    pnsso --profile <named profile>

Support

OSTestedWorking
MacOS Big Sur 🍎
Linux Ubuntu 🐧
Windows 🪟N/A

Notes

  • The first time you run the command it will create a backup for you credentials file, if you need to retrieve the old value of the default profile, it is located at ~/.aws/credentials_backup
1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago