Handles the creation and caching of credential providers for AWS accounts.
Returns an AwsCredentialProvider for a given AWS account.
Optional
the AWS account ID or AWS resource ARN
A promise of AwsCredentialProvider.
const { provider } = await getCredentialProvider({ accountId: '0123456789012',})const { provider } = await getCredentialProvider({ arn: 'arn:aws:ecs:us-west-2:123456789012:service/my-http-service'}) Copy
const { provider } = await getCredentialProvider({ accountId: '0123456789012',})const { provider } = await getCredentialProvider({ arn: 'arn:aws:ecs:us-west-2:123456789012:service/my-http-service'})
Static
Handles the creation and caching of credential providers for AWS accounts.