1.0.2 • Published 2 years ago
pn-sso v1.0.2
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
Make sure you are using AWS CLI v2
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
- Login via pnsso
pnsso --profile <named profile>
Support
OS | Tested | Working |
---|---|---|
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