aws-profile-scripts
Usage
# install globally - this is a private @20i package so make sure your .npmrc is set up
npm i -g @20i/aws-profile-scripts
# view usage entry
add-aws-profile --help
Scenario 1: SSO credentails
- Open your SSO link, such as: https://twentyideas.awsapps.com/start/
- Click on the project you want to authenticate with
- Select "Command line or programmatic access"
- Copy the text under "Option 2: Add a profile to your AWS credentials file"
- Run
add-aws-profile <profileName>
with <profileName>
as the profile you want to add or replace - Paste in the profile you copied
This will add the profile to your ~/.aws/credentials
file, and create a backup of the file.
Scenario 2: MFA device
TBD