diff --git a/packages/credential-providers/src/fromNodeProviderChain.ts b/packages/credential-providers/src/fromNodeProviderChain.ts index 2c39f9feaa65..efcbf3184a84 100644 --- a/packages/credential-providers/src/fromNodeProviderChain.ts +++ b/packages/credential-providers/src/fromNodeProviderChain.ts @@ -15,9 +15,15 @@ import type { AwsCredentialIdentityProvider } from "@smithy/types"; * // const { fromNodeProviderChain } = require("@aws-sdk/credential-providers") // CommonJS import * * const credentialProvider = fromNodeProviderChain({ - * //...any input of fromEnv(), fromSSO(), fromTokenFile(), fromIni(), + * // init properties for fromEnv(), fromSSO(), fromTokenFile(), fromIni(), * // fromProcess(), fromInstanceMetadata(), fromContainerMetadata() * + * // For instance, to ignore the ini shared cache, change the credentials filepath for all + * // providers, and set the sso start id: + * ignoreCache: true, + * filepath: "~/.config/aws/credentials", + * ssoStartUrl: "https://d-abc123.awsapps.com/start" + * * // Optional. Custom STS client configurations overriding the default ones. * clientConfig: { region }, * // Optional. Custom STS client middleware plugin to modify the client default behavior.