aws-creds
🎯
Basic Features - Manage AWS Credentials to use with AWS CLI and AWS SDKs
- Handles both Long-Term or Temporary Credentials with a single command
- Create AWS CLI profile to store the AWS credentials
- Store AWS credentials into Environment variables
- Identify details about the currently used AWS Credentials
🚀
Premium Features - Get MFA authenticated credentials and configure them into a CLI profile
- List AWS CLI profiles on the machine
- Delete an AWS CLI profile
- Import IAM user's credentials downloaded from the IAM console (in CSV format) into a CLI profile
-
Backup the
.aws/credentials
file -
Import
.aws/credentials
file's backup into a new machine
aws-creds PRO 🙌
For all the premium features do check out ⚠️
Prerequisites Node.js version >= 12
💾
Install # Install globally (recommended).
npm install -g @tsacademy/aws-creds
🕹
Usage 🎯
Basic Features 1️⃣ set
Store AWS Credentials into an AWS CLI Profile or in Environment varibales
aws-creds set
2️⃣ curr
Return the "Credentials source", "Account ID" and "IAM entity" of currently used credentials
# Return details either for credentials in env variables if present, else from the 'default' CLI profile
aws curr
# Return details for a specific CLI profile
aws curr --profile <profileName>
3️⃣ help
Display the help data.
corona help
corona --help
🚀 ( Available with aws-creds PRO )
Premium Features 1️⃣ list-profiles
Get list of AWS CLI profiles configured in the .aws/credentials file
aws-creds list-profiles
2️⃣ delete-profile
Delete an AWS CLI profile configured in the .aws/credentials file
aws-creds delete-profile
3️⃣ mfa
Get MFA Authenticated credentials
Note: The process mentioned in the following AWS article is automated by this feature to easily get MFA authenticated credentials.
# ⭐️ Called once ⭐️ for a specific credential to configure MFA related configuration
aws-creds mfa configure
# Issue and store MFA authenticated AWS credentials into an AWS CLI profile
# AWS CLI profile created with following name: ${profileName}-mfa
aws-creds mfa
4️⃣ import
Import IAM user's credentials downloaded from IAM console (in CSV format) into a CLI profile
aws-creds import
5️⃣ backup
.aws/credentials
file
Backup aws-creds backup
6️⃣ import-backup
.aws/credentials
file's backup into a new machine
Import aws-creds import-backup