awsauth
ghauth for aws
npm install awsauth
Usage
var awsauth =
Running this will output something like this:
$ node example.js
Your AWS Access Key ID: AKIAEXAMPLEEXAMPLE12
Your AWS Secret Access Key: SECRETKEYSECRETKEYSECRETKEYSECRETKEY1234
Your preferred AWS region (optional, us-east-1): eu-west-1
{
key: 'AKIAEXAMPLEEXAMPLE12',
secret: 'SECRETKEYSECRETKEYSECRETKEYSECRETKEY1234',
region: 'eu-west-1'
}
awsauth will first look in ~/.aws/config
for the profile (the place the aws cli tool stores credentials)
and if not found it will prompt and then verify the keys. If the keys are verified it will store them in the config file
More options
License
MIT