Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @aws-sdk/credential-provider-imds

@aws-sdk/credential-provider-imds

NPM version NPM downloads

An internal package

Usage

You probably shouldn't, at least directly. Please use @aws-sdk/credential-providers instead.

Index

References

DEFAULT_MAX_RETRIES

Re-exports DEFAULT_MAX_RETRIES

DEFAULT_MAX_RETRIES

Re-exports DEFAULT_MAX_RETRIES

DEFAULT_TIMEOUT

Re-exports DEFAULT_TIMEOUT

DEFAULT_TIMEOUT

Re-exports DEFAULT_TIMEOUT

ENV_CMDS_AUTH_TOKEN

Re-exports ENV_CMDS_AUTH_TOKEN

ENV_CMDS_FULL_URI

Re-exports ENV_CMDS_FULL_URI

ENV_CMDS_RELATIVE_URI

Re-exports ENV_CMDS_RELATIVE_URI

ImdsCredentials

Re-exports ImdsCredentials

InstanceMetadataCredentials

Re-exports InstanceMetadataCredentials

RemoteProviderConfig

Re-exports RemoteProviderConfig

RemoteProviderConfig

Re-exports RemoteProviderConfig

RemoteProviderInit

Re-exports RemoteProviderInit

RemoteProviderInit

Re-exports RemoteProviderInit

fromContainerMetadata

Re-exports fromContainerMetadata

fromImdsCredentials

Re-exports fromImdsCredentials

fromInstanceMetadata

Re-exports fromInstanceMetadata

getInstanceMetadataEndpoint

Re-exports getInstanceMetadataEndpoint

httpRequest

Re-exports httpRequest

isImdsCredentials

Re-exports isImdsCredentials

providerConfigFromInit

Re-exports providerConfigFromInit

providerConfigFromInit

Re-exports providerConfigFromInit

Variables

Const CMDS_IP

CMDS_IP: "169.254.170.2" = "169.254.170.2"

Const CONFIG_ENDPOINT_MODE_NAME

CONFIG_ENDPOINT_MODE_NAME: "ec2_metadata_service_endpoint_mode" = "ec2_metadata_service_endpoint_mode"

Const CONFIG_ENDPOINT_NAME

CONFIG_ENDPOINT_NAME: "ec2_metadata_service_endpoint" = "ec2_metadata_service_endpoint"

Const DEFAULT_MAX_RETRIES

DEFAULT_MAX_RETRIES: 0 = 0

Const DEFAULT_TIMEOUT

DEFAULT_TIMEOUT: 1000 = 1000

Const ENV_CMDS_AUTH_TOKEN

ENV_CMDS_AUTH_TOKEN: "AWS_CONTAINER_AUTHORIZATION_TOKEN" = "AWS_CONTAINER_AUTHORIZATION_TOKEN"

Const ENV_CMDS_FULL_URI

ENV_CMDS_FULL_URI: "AWS_CONTAINER_CREDENTIALS_FULL_URI" = "AWS_CONTAINER_CREDENTIALS_FULL_URI"

Const ENV_CMDS_RELATIVE_URI

ENV_CMDS_RELATIVE_URI: "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"

Const ENV_ENDPOINT_MODE_NAME

ENV_ENDPOINT_MODE_NAME: "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE" = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"

Const ENV_ENDPOINT_NAME

ENV_ENDPOINT_NAME: "AWS_EC2_METADATA_SERVICE_ENDPOINT" = "AWS_EC2_METADATA_SERVICE_ENDPOINT"

Const IMDS_PATH

IMDS_PATH: "/latest/meta-data/iam/security-credentials/" = "/latest/meta-data/iam/security-credentials/"

Const IMDS_TOKEN_PATH

IMDS_TOKEN_PATH: "/latest/api/token" = "/latest/api/token"

Const STATIC_STABILITY_DOC_URL

STATIC_STABILITY_DOC_URL: "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html" = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"

Const STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS

STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS: number = 5 * 60

Const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS

STATIC_STABILITY_REFRESH_INTERVAL_SECONDS: number = 5 * 60

Functions

Const fromContainerMetadata

Const fromImdsCredentials

Const fromInstanceMetadata

Const getCmdsUri

  • getCmdsUri(): Promise<RequestOptions>

Const getCredentialsFromProfile

  • getCredentialsFromProfile(profile: string, options: RequestOptions): Promise<Credentials>

Const getExtendedInstanceMetadataCredentials

Const getFromEndpointConfig

  • getFromEndpointConfig(): Promise<string | undefined>

Const getFromEndpointModeConfig

  • getFromEndpointModeConfig(): Promise<string>

Const getInstanceImdsProvider

Const getInstanceMetadataEndpoint

  • getInstanceMetadataEndpoint(): Promise<Endpoint>

Const getMetadataToken

  • getMetadataToken(options: RequestOptions): Promise<Buffer>

Const getProfile

  • getProfile(options: RequestOptions): Promise<string>

httpRequest

  • httpRequest(options: RequestOptions): Promise<Buffer>

Const isImdsCredentials

  • isImdsCredentials(arg: any): arg is ImdsCredentials

Const providerConfigFromInit

  • providerConfigFromInit(__namedParameters: { maxRetries: number; timeout: number }): RemoteProviderConfig

Const requestFromEcsImds

  • requestFromEcsImds(timeout: number, options: RequestOptions): Promise<string>

Const retry

Const staticStabilityProvider

Object literals

Const ENDPOINT_CONFIG_OPTIONS

ENDPOINT_CONFIG_OPTIONS: object

default

default: undefined = undefined

configFileSelector

  • configFileSelector(profile: Profile): string

environmentVariableSelector

  • environmentVariableSelector(env: ProcessEnv): string

Const ENDPOINT_MODE_CONFIG_OPTIONS

ENDPOINT_MODE_CONFIG_OPTIONS: object

default

default: EndpointMode = EndpointMode.IPv4

configFileSelector

  • configFileSelector(profile: Profile): string

environmentVariableSelector

  • environmentVariableSelector(env: ProcessEnv): string

Const GREENGRASS_HOSTS

GREENGRASS_HOSTS: object

127.0.0.1

127.0.0.1: boolean = true

localhost

localhost: boolean = true

Const GREENGRASS_PROTOCOLS

GREENGRASS_PROTOCOLS: object

http:

http:: boolean = true

https:

https:: boolean = true