@aws-js-sdk-v3-prerelease/credential-provider-env
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-preview.2 • Public • Published

AWS Credential Provider for Node.JS - Environment Variables

This module provides a CredentialProvider function, fromEnv, that reads from the following environment variables:

  • AWS_ACCESS_KEY_ID - The access key for your AWS account.
  • AWS_SECRET_ACCESS_KEY - The secret key for your AWS account.
  • AWS_SESSION_TOKEN - The session key for your AWS account. This is only needed when you are using temporary credentials.
  • AWS_CREDENTIAL_EXPIRATION - The expiration time of the credentials contained in the environment variables described above. This value must be in a format compatible with the ISO-8601 standard and is only needed when you are using temporary credentials.

If either the AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY environment variable is not set or contains a falsy value, the promise returned by the fromEnv function will be rejected.

Readme

Keywords

Package Sidebar

Install

npm i @aws-js-sdk-v3-prerelease/credential-provider-env

Weekly Downloads

3

Version

0.1.0-preview.2

License

Apache-2.0

Unpacked Size

16.6 kB

Total Files

7

Last publish

Collaborators

  • aws-sdk-bot
  • zheallan-bot
  • zheallan