🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

awsauth

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awsauth

ghauth for aws

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

awsauth

ghauth for aws

npm install awsauth

Usage

var awsauth = require('awsauth')

awsauth({
  profile: 'my-profile'
}, function(err, profile) {
  if (err) throw err
  console.log(profile)
})

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

awsauth({
  profile: 'my-profile',
  verify: false, // skip the verification step
  config: 'some-other-config-file-path' // use another config file,
  region: 'eu-west-1' // change the default region
}, function() {
  ...
})

License

MIT

Keywords

aws

FAQs

Package last updated on 03 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts