@aws-sdk/credential-provider-imds
AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service
Last updated 5 years ago by aws-sdk-bot .
Apache-2.0 · Original npm · Tarball · package.json
$ npm install @aws-sdk/credential-provider-imds 
SYNC missed versions from official npm registry.

AWS Credential Provider for Node.JS - Instance and Container Metadata

NPM version NPM downloads

This module provides two CredentialProvider factory functions, fromContainerMetadata and fromInstanceMetadata, that will create CredentialProvider functions that read from the ECS container metadata service and the EC2 instance metadata service, respectively.

A CredentialProvider function created with fromContainerMetadata will return a promise that will resolve with credentials for the IAM role associated with containers in an Amazon ECS task. Please see IAM Roles for Tasks for more information on using IAM roles with Amazon ECS.

A CredentialProvider function created with fromInstanceMetadata will return a promise that will resolve with credentials for the IAM role associated with an EC2 instance. Please see IAM Roles for Amazon EC2 for more information on using IAM roles with Amazon EC2.

Supported configuration

You may customize how credentials are resolved by providing an options hash to the fromContainerMetadata and fromInstanceMetadata factory functions. The following options are supported:

  • timeout - The connection timeout (in milliseconds) to apply to any remote requests. If not specified, a default value of 1000 (one second) is used.
  • maxRetries - The maximum number of times any HTTP connections should be retried. If not specified, a default value of 0 will be used.

Additionally, fromInstanceMetadata supports the following options:

  • profile - The configuration profile to use. If not specified, the provider will use default profile name associated with the EC2 instance as reported by the Instance Metadata Service.

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.374.0                                ...           latest (a year ago)
  • 0.1.0-preview.8                                ...           preview (5 years ago)
  • 1.0.0-rc.10                                ...           rc (4 years ago)

140 Versions

  • 3.374.0 [deprecated]           ...           a year ago
  • 3.370.0                                ...           a year ago
  • 3.369.0                                ...           a year ago
  • 3.366.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.259.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.81.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.39.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.26.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.12.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.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.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.8                                ...           5 years ago
  • 0.1.0-preview.7                                ...           5 years ago
  • 0.1.0-preview.6                                ...           5 years ago
  • 0.1.0-preview.5                                ...           5 years ago
  • 0.1.0-preview.4                                ...           5 years ago
  • 0.1.0-preview.3                                ...           6 years ago
  • 0.1.0-preview.2                                ...           6 years ago
  • 0.1.0-preview.1                                ...           6 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (4)

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