0.1.10 • Published 2 years ago

aws-sso-credential-loader v0.1.10

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

aws-sso-credential-loader

about

  • A helper module to load AWS SSO credential for NodeJS cli applications.

  • User can select local aws profiles via cli. This module sets correspondent credentials of selected profile to NodeJS environment variables. aws-sdk modules in same process can utilize those values/credentials to access specified aws environment.

prerequisite

  • aws-cli v2

  • .aws/config file under home folder which generated with aws configure sso command

how to use

import { setAwsSsoCredential } from "aws-sso-credential-loader";

(async() => {
  // run this function before calling any aws sdk functions
  await setAwsSsoCredential();
  // after the function above set credentials into process.env 
  // aws sdk functions can reference credentials which set in process.env

})
0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago