🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

aws-get-session-token

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-get-session-token

CLI for accessing AWS with MFA and/or switching profiles

1.0.2
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

aws-get-session-token

CLI for accessing AWS with MFA and/or switching profiles

Installation

npm i aws-get-session-token -g

Usage

$ gst -p dev -t 123456

$ gst --help
Options:
  --profile, -p  Seed profile      [string] [default: "dev"]
  --token, -t    MFA token                          [string]
  --help         Show help                         [boolean]

Configuration

Your aws credentials should be located at ~/.aws/credentials per usual. Do not include a [default] profile because it will be generated by this utility. mfa_arn is the arn of the mfa device that is registered with your IAM user.

[dev]
aws_access_key_id=ZZZZZZZZZZZZZZZZZZZZZZ
aws_secret_access_key=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
mfa_arn=arn:aws:iam::123456789012:mfa/my-user

Now, when you use invoke the aws-sdk, it defaults to using the session you last started.

Inspired by: vividbytes/awsmfa and many others

Keywords

aws

FAQs

Package last updated on 07 Dec 2018

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