UNPKG

@smithy/credential-provider-imds

Version:

AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service

22 lines (21 loc) 691 B
import type { AwsCredentialIdentityProvider } from "@smithy/types"; import { type RemoteProviderInit } from "./remoteProvider/RemoteProviderInit"; /** * @internal */ export declare const ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; /** * @internal */ export declare const ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; /** * @internal */ export declare const ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; /** * Creates a credential provider that will source credentials from the ECS * Container Metadata Service * * @internal */ export declare const fromContainerMetadata: (init?: RemoteProviderInit) => AwsCredentialIdentityProvider;