Skip to content

Commit 7f5a1ee

Browse files
authored
docs(credential-providers): client region and fromIni interaction
1 parent c709988 commit 7f5a1ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/credential-providers/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,14 @@ const client = new FooClient({
438438
// 2. AWS_PROFILE environment variable (affects all clients).
439439
// 3. the default profile.
440440
profile: "my-profile",
441+
442+
// Please note that the data client's region
443+
// will not be used by STS requests originating from the `fromIni`
444+
// provider if the profile(s) used have their own configured regions.
445+
// If the profile(s) have no regions set, then the data client's
446+
// region will be the fallback for the inner STS client.
447+
region: "us-west-2",
448+
441449
credentials: fromIni({
442450
// Optional. Defaults to the client's profile if that is set.
443451
// You can specify a profile here as well, but this applies

0 commit comments

Comments
 (0)