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 - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

2

package.json
{
"name": "@20i/aws-profile-scripts",
"version": "0.0.5",
"version": "0.1.0",
"description": "Command line scripts for managing your AWS profile",

@@ -5,0 +5,0 @@ "scripts": {

# aws-profile-scripts
## Usage
## Installation
```shell
# install globally - this is a private @20i package so make sure your .npmrc is set up
npm i -g @20i/aws-profile-scripts
```
## Usage
### Scenario 1: MFA device
```shell
# 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.
```shell
# view usage entry
npx add-aws-profile --help
```
### Scenario 1: SSO credentails
Instructions:
* Open your SSO link, such as: https://twentyideas.awsapps.com/start/

@@ -24,13 +45,1 @@ * Click on the project you want to authenticate with

### Scenario 2: MFA device
* Configure an mfa profile. This will contain an access key generated in IAM.
```
# I'm creating a profile called my-project, so I need to add my-project-mfa
aws configure --profile my-project-mfa
```
* Run `npx aws-mfa -p my-project`
* Get the serial number for your MFA device from the AWS console. It should look something like this: `arn:aws:iam::123456789123:mfa/Authenticator`. You can also pass a `-s` flag to the `aws-mfa` command to keep this handy in your terminal history.
* Enter the token from your authenticator when prompted for your OTP.
This should add a profile to your `~/.aws/credentials` file with a temporary token. This command does not currently create a backup file for you, so you may want to make one yourself before running it.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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