1.0.20 β’ Published 4 years ago
aws-default-credentials-switcher v1.0.20
AWS Default Credentials Switcher CLI Tool
Allows Linux/Mac user to switch the default AWS credentials in use from the available profiles.
π Motivation
Super GO Team and others deal with multiple AWS clients and accounts.
This package lets us easily switch default credentials in-use.
π€ Other Methods
If you know your profile names, there are other ways to achieve this on temporary basis:
- Add switch inline on commands:
--profile [profile-name]
- π useful for single commands
- π easy to forget!
- Set env var
export AWS_DEFAULT_PROFILE=[profile-name]
- π allows you to switch default profile
- π overrides default profile set in .aws/credentials
- π relies on environment variables that can be lost across sessions/reboots
β Benefits
- Easy menu to choose profile
- Persistent switch of your default profile across sessions and reboots
πΎ Install
npm i --global aws-default-credentials-switcher
π» Run from CLI
WARNING: This package will (locally) read and update your ~/.aws/credentials file. MAKE A BACKUP BEFORE USE!
Select profile from menu:
aws-switch-credentials
Specify profile as argument:
aws-switch-credentials [profile-name]
π Notes
- Assumes credentials file at
~/.aws/credentials
but can also set CREDENTIALS_FILE_LOCATION as environment variable - Creates
~/.aws/credentials.awswitcher.firstbackup
on first run - Creates
~/.aws/credentials.awswitcher.backup
on every run
π Project Status
V1 is a fast prototype with no refactoring.
V2 Planned Updates:
- Refactor codebase to seperate logic
- Improve formatting/colour output
- Better error handling
π¦ΈπΌβ Team
- Maintainer Andy Hall andy@superGOteam.com
- Maintainer Wade Montague wade@superGOteam.com
π License
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.11
4 years ago
1.0.20
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago