Socket
Socket
Sign inDemoInstall

@20i/aws-profile-scripts

Package Overview
Dependencies
Maintainers
17
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@20i/aws-profile-scripts

Command line scripts for managing your AWS profile


Version published
Weekly downloads
3
decreased by-62.5%
Maintainers
17
Weekly downloads
 
Created
Source

aws-profile-scripts

Installation

npm i -g @20i/aws-profile-scripts

Usage

Scenario 1: MFA device

# view usage entry
npx aws-mfa -h

This command helps you to authenticate with AWS using MFA and store the temporary credentials in your AWS profile.

  1. Run npx aws-mfa -p myproject
  2. Enter your six-digit code when asked for your authenticator token.

You may be asked to configure your myproject-mfa profile. It should be configured to use the access key and secret from your IAM user in AWS.

Scenario 2: SSO credentails

If you're logging in with SSO, rather than an access token, this script just adds a fast way to update your profile, but it still requires copying and pasting the SSO credential information.

# view usage entry
npx add-aws-profile --help

Instructions:

  • Open your SSO link, such as: https://twentyideas.awsapps.com/start/
  • Click on the project you want to authenticate with
  • Select "Command line or programmatic access"
  • Copy the text under "Option 2: Add a profile to your AWS credentials file"
  • Run add-aws-profile <profileName> with <profileName> as the profile you want to add or replace
  • Paste in the profile you copied

This will add the profile to your ~/.aws/credentials file, and create a backup of the file.

FAQs

Package last updated on 06 Apr 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc