@aws-sdk/credential-provider-process
AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config
Last updated 4 years ago by aws-sdk-bot .
Apache-2.0 · Original npm · Tarball · package.json
$ npm install @aws-sdk/credential-provider-process 
SYNC missed versions from official npm registry.

AWS Credential Provider for Node.JS - Shared Configuration Files

NPM version NPM downloads

This module provides a function, fromSharedConfigFiles that will create CredentialProvider functions that read from a shared credentials file at ~/.aws/credentials and a shared configuration file at ~/.aws/config. Both files are expected to be INI formatted with section names corresponding to profiles. Sections in the credentials file are treated as profile names, whereas profile sections in the config file must have the format of[profile profile-name], except for the default profile. Please see the sample files below for examples of well-formed configuration and credentials files.

Profiles that appear in both files will not be merged, and the version that appears in the credentials file will be given precedence over the profile found in the config file.

Supported configuration

You may customize how credentials are resolved by providing an options hash to the fromSharedConfigFiles factory function. The following options are supported:

  • profile - The configuration profile to use. If not specified, the provider will use the value in the AWS_PROFILE environment variable or a default of default.
  • filepath - The path to the shared credentials file. If not specified, the provider will use the value in the AWS_SHARED_CREDENTIALS_FILE environment variable or a default of ~/.aws/credentials.
  • configFilepath - The path to the shared config file. If not specified, the provider will use the value in the AWS_CONFIG_FILE environment variable or a default of ~/.aws/config.

Sample files

~/.aws/credentials

[default]
credential_process = /usr/local/bin/awscreds

[dev]
credential_process = /usr/local/bin/awscreds dev

[prod]
credential_process = /usr/local/bin/awscreds prod

~/.aws/config

[default]
credential_process = /usr/local/bin/awscreds

[profile dev]
credential_process = /usr/local/bin/awscreds dev

[profile prod]
credential_process = /usr/local/bin/awscreds prod

Current Tags

  • 1.0.0-alpha.6                                ...           alpha (5 years ago)
  • 1.0.0-beta.4                                ...           beta (5 years ago)
  • 1.0.0-gamma.9                                ...           gamma (4 years ago)
  • 3.696.0                                ...           latest (a month ago)
  • 0.1.0-preview.5                                ...           preview (5 years ago)
  • 3.5.1-rc.0                                ...           rc (4 years ago)

187 Versions

  • 3.696.0                                ...           a month ago
  • 3.693.0                                ...           a month ago
  • 3.692.0                                ...           a month ago
  • 3.691.0                                ...           a month ago
  • 3.686.0                                ...           2 months ago
  • 3.679.0                                ...           2 months ago
  • 3.678.0                                ...           2 months ago
  • 3.677.0                                ...           2 months ago
  • 3.667.0                                ...           3 months ago
  • 3.664.0                                ...           3 months ago
  • 3.662.0                                ...           3 months ago
  • 3.654.0                                ...           3 months ago
  • 3.649.0                                ...           3 months ago
  • 3.620.1                                ...           5 months ago
  • 3.614.0                                ...           5 months ago
  • 3.609.0                                ...           6 months ago
  • 3.598.0                                ...           6 months ago
  • 3.587.0                                ...           7 months ago
  • 3.577.0                                ...           7 months ago
  • 3.575.0                                ...           7 months ago
  • 3.572.0                                ...           8 months ago
  • 3.568.0                                ...           8 months ago
  • 3.567.0                                ...           8 months ago
  • 3.535.0                                ...           9 months ago
  • 3.533.0                                ...           9 months ago
  • 3.523.0                                ...           10 months ago
  • 3.521.0                                ...           10 months ago
  • 3.515.0                                ...           10 months ago
  • 3.511.0                                ...           a year ago
  • 3.502.0                                ...           a year ago
  • 3.496.0                                ...           a year ago
  • 3.495.0                                ...           a year ago
  • 3.489.0                                ...           a year ago
  • 3.485.0                                ...           a year ago
  • 3.468.0                                ...           a year ago
  • 3.465.0                                ...           a year ago
  • 3.460.0                                ...           a year ago
  • 3.451.0                                ...           a year ago
  • 3.449.0                                ...           a year ago
  • 3.433.0                                ...           a year ago
  • 3.428.0                                ...           a year ago
  • 3.425.0                                ...           a year ago
  • 3.418.0                                ...           a year ago
  • 3.413.0                                ...           a year ago
  • 3.410.0                                ...           a year ago
  • 3.408.0                                ...           a year ago
  • 3.405.0                                ...           a year ago
  • 3.398.0                                ...           a year ago
  • 3.391.0                                ...           a year ago
  • 3.387.0                                ...           a year ago
  • 3.378.0                                ...           a year ago
  • 3.370.0                                ...           a year ago
  • 3.369.0                                ...           a year ago
  • 3.363.0                                ...           a year ago
  • 3.357.0                                ...           2 years ago
  • 3.354.0                                ...           2 years ago
  • 3.353.0                                ...           2 years ago
  • 3.347.0                                ...           2 years ago
  • 3.342.0                                ...           2 years ago
  • 3.341.0                                ...           2 years ago
  • 3.338.0                                ...           2 years ago
  • 3.337.0                                ...           2 years ago
  • 3.329.0                                ...           2 years ago
  • 3.310.0                                ...           2 years ago
  • 3.306.0                                ...           2 years ago
  • 3.303.0                                ...           2 years ago
  • 3.300.0                                ...           2 years ago
  • 3.296.0                                ...           2 years ago
  • 3.295.0                                ...           2 years ago
  • 3.292.0                                ...           2 years ago
  • 3.290.0                                ...           2 years ago
  • 3.289.0                                ...           2 years ago
  • 3.287.0                                ...           2 years ago
  • 3.272.0                                ...           2 years ago
  • 3.271.0                                ...           2 years ago
  • 3.267.0                                ...           2 years ago
  • 3.266.1                                ...           2 years ago
  • 3.266.0                                ...           2 years ago
  • 3.257.0                                ...           2 years ago
  • 3.254.0                                ...           2 years ago
  • 3.226.0                                ...           2 years ago
  • 3.224.0                                ...           2 years ago
  • 3.222.0                                ...           2 years ago
  • 3.215.0                                ...           2 years ago
  • 3.212.0                                ...           2 years ago
  • 3.209.0                                ...           2 years ago
  • 3.208.0                                ...           2 years ago
  • 3.201.0                                ...           2 years ago
  • 3.200.0                                ...           2 years ago
  • 3.198.0                                ...           2 years ago
  • 3.197.0                                ...           2 years ago
  • 3.193.0                                ...           2 years ago
  • 3.190.0                                ...           2 years ago
  • 3.188.0                                ...           2 years ago
  • 3.186.0                                ...           2 years ago
  • 3.183.0                                ...           2 years ago
  • 3.178.0                                ...           2 years ago
  • 3.171.0                                ...           2 years ago
  • 3.170.0                                ...           2 years ago
  • 3.168.0                                ...           2 years ago
  • 3.162.0                                ...           2 years ago
  • 3.160.0                                ...           2 years ago
  • 3.159.0                                ...           2 years ago
  • 3.127.0                                ...           2 years ago
  • 3.110.0                                ...           3 years ago
  • 3.109.0                                ...           3 years ago
  • 3.80.0                                ...           3 years ago
  • 3.79.0                                ...           3 years ago
  • 3.78.0                                ...           3 years ago
  • 3.75.0                                ...           3 years ago
  • 3.58.0                                ...           3 years ago
  • 3.56.0                                ...           3 years ago
  • 3.55.0                                ...           3 years ago
  • 3.54.1                                ...           3 years ago
  • 3.54.0                                ...           3 years ago
  • 3.53.0                                ...           3 years ago
  • 3.52.0                                ...           3 years ago
  • 3.51.0                                ...           3 years ago
  • 3.50.0                                ...           3 years ago
  • 3.49.0                                ...           3 years ago
  • 3.47.2                                ...           3 years ago
  • 3.47.1                                ...           3 years ago
  • 3.47.0                                ...           3 years ago
  • 3.46.0                                ...           3 years ago
  • 3.40.0                                ...           3 years ago
  • 3.38.0                                ...           3 years ago
  • 3.37.0                                ...           3 years ago
  • 3.36.0                                ...           3 years ago
  • 3.35.0                                ...           3 years ago
  • 3.34.0                                ...           3 years ago
  • 3.32.0                                ...           3 years ago
  • 3.29.0                                ...           3 years ago
  • 3.28.0                                ...           3 years ago
  • 3.27.0                                ...           3 years ago
  • 3.25.0                                ...           3 years ago
  • 3.23.0                                ...           3 years ago
  • 3.22.0                                ...           3 years ago
  • 3.20.0                                ...           3 years ago
  • 3.19.0                                ...           4 years ago
  • 3.18.0                                ...           4 years ago
  • 3.15.0                                ...           4 years ago
  • 3.13.1                                ...           4 years ago
  • 3.13.0                                ...           4 years ago
  • 3.12.0                                ...           4 years ago
  • 3.11.0                                ...           4 years ago
  • 3.10.0                                ...           4 years ago
  • 3.8.0                                ...           4 years ago
  • 3.7.0                                ...           4 years ago
  • 3.6.1                                ...           4 years ago
  • 3.6.0                                ...           4 years ago
  • 3.5.1-rc.0 [deprecated]           ...           4 years ago
  • 3.4.1                                ...           4 years ago
  • 3.4.0                                ...           4 years ago
  • 3.3.0                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 1.0.0-rc.10                                ...           4 years ago
  • 1.0.0-rc.9                                ...           4 years ago
  • 1.0.0-rc.8                                ...           4 years ago
  • 1.0.0-rc.7                                ...           4 years ago
  • 1.0.0-rc.5                                ...           4 years ago
  • 1.0.0-rc.3                                ...           4 years ago
  • 1.0.0-rc.2                                ...           4 years ago
  • 1.0.0-rc.1                                ...           4 years ago
  • 1.0.0-gamma.9                                ...           4 years ago
  • 1.0.0-gamma.8                                ...           4 years ago
  • 1.0.0-gamma.7                                ...           4 years ago
  • 1.0.0-gamma.6                                ...           4 years ago
  • 1.0.0-gamma.5                                ...           4 years ago
  • 1.0.0-gamma.4                                ...           4 years ago
  • 1.0.0-gamma.3                                ...           4 years ago
  • 1.0.0-gamma.2                                ...           4 years ago
  • 1.0.0-gamma.1                                ...           5 years ago
  • 1.0.0-beta.4                                ...           5 years ago
  • 1.0.0-beta.3                                ...           5 years ago
  • 1.0.0-beta.2                                ...           5 years ago
  • 1.0.0-beta.1                                ...           5 years ago
  • 1.0.0-alpha.6                                ...           5 years ago
  • 1.0.0-alpha.5                                ...           5 years ago
  • 1.0.0-alpha.4                                ...           5 years ago
  • 1.0.0-alpha.3                                ...           5 years ago
  • 1.0.0-alpha.2                                ...           5 years ago
  • 1.0.0-alpha.1                                ...           5 years ago
  • 0.1.0-preview.5                                ...           5 years ago
  • 0.1.0-preview.4                                ...           5 years ago
  • 0.1.0-preview.3                                ...           5 years ago
  • 0.1.0-preview.2                                ...           5 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE