npm.io
1.0.4 • Published 1 year agoCLI

@tsacademy/aws-creds

Licence
MIT
Version
1.0.4
Deps
11
Size
19 kB
Vulns
0
Weekly
0
Stars
1

aws-creds

Manage AWS Credentials

DOWNLOADS Try aws-creds Pro Follow @tsacademy0 on Twitter


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
For all the premium features do check out aws-creds PRO

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.
aws-creds help

aws-creds --help


Premium Features ( Available with aws-creds PRO )
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
Backup .aws/credentials file
aws-creds backup

6) import-backup
Import .aws/credentials file's backup into a new machine
aws-creds import-backup

License & Conduct

Keywords