- 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
- 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
For all the premium features do check out aws-creds PRO 🙌
Node.js version >= 12
# Install globally (recommended).
npm install -g @tsacademy/aws-creds
aws-creds set
# 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>
aws-creds help
aws-creds --help
Premium Features 🚀 ( Available with aws-creds PRO )
aws-creds list-profiles
aws-creds delete-profile
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
aws-creds import
aws-creds backup
aws-creds import-backup