aws-saml
AWS SAML login
Last updated 2 months ago by ddimitrioglo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install aws-saml -g
SYNC missed versions from official npm registry.

aws-saml

Node.js CLI package which allows you to get AWS temporary credentials using a SAML IDP. Inspired by AWS CLI Access Using SAML 2.0 article.

If you have AWS-SAML configured and you can provide me a minimal access to it please open an issue to get in touch. Having such access would help me to continue improving this package and test if it's not broken. Thanks.

Prerequisites

  • Node.js v4+
  • AWS Command Line Interface (CLI) configured
  • AWS SAML Provider configured

Installation

npm install -g aws-saml

Configuration

aws-saml configure

Or manually add/edit ~/.aws-saml/config.json which should look like

{
  "profile": "saml",                    # AWS named profile [Required, default: "saml"]
  "username": "myusername",             # SSO username (login or email) [Required]
  "password": false,                    # SSO password (encrypted with SSH keys) [Optional, default: false]
  "directoryDomain": "https://directory.mycorp.com", # Identity provider (aka IdP) [Required] 
  "aliases": {                          # AWS accounts aliases [Optional, default: {}]
    "888999888999": "workAccount",
    ...
  }
}

Usage

  • Run aws-saml login
  • Enter a username & password
  • Chose an account
  • Use your AWS CLI commands by adding --profile saml

Ex. aws s3 ls --profile saml

Help

To get familiar with all the features, just use aws-saml --help

Todo

  • Get rid of request as it was deprecated
  • Try AWS.util.iniLoader.resolvedProfiles (issue #13)

Improvements

  • If you are facing some issues, please don't hesitate to open an issue
  • If you have an idea how to improve this module, feel free to contribute or open an issue with enhancement label

We will get back to you as soon as possible.

License

This repository can be used under the MIT license.

See LICENSE for more details.

Current Tags

  • 1.1.3                                ...           latest (2 months ago)

14 Versions

  • 1.1.3                                ...           2 months ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 9
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |