Creates a credential provider that will source credentials from the ECS Container Metadata Service
Creates a credential provider that will source credentials from the EC2 Instance Metadata Service
Returns the host to use for instance metadata service call.
The host is read from endpoint which can be set either in ENV_ENDPOINT_NAME environment variable or CONFIG_ENDPOINT_NAME configuration property.
If endpoint is not set, then endpoint mode is read either from ENV_ENDPOINT_MODE_NAME environment variable or CONFIG_ENDPOINT_MODE_NAME configuration property. If endpoint mode is not set, then default endpoint mode EndpointMode.IPv4 is used.
If endpoint mode is set to EndpointMode.IPv4, then the host is Endpoint.IPv4. If endpoint mode is set to EndpointMode.IPv6, then the host is Endpoint.IPv6.
Host to use for instance metadata service call.
IMDS credential supports static stability feature. When used, the expiration of recently issued credentials is extended. The server side allows using the recently expired credentials. This mitigates impact when clients using refreshable credentials are unable to retrieve updates.
Credential provider
A credential provider that supports static stability
@aws-sdk/credential-provider-imds
Usage
You probably shouldn't, at least directly. Please use @aws-sdk/credential-providers instead.