-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't transform a ProfileDidNotContainCredentials error if base_…
…provider is running for first provider in chain (#873) * fix: don't transform a ProfileDidNotContainCredentials if base_provider is running for first provider in chain add: more comments to aws_config::profile::credentials::repr functions * add: Test ensuring provider chain hits IMDS even if some config data exists * update: test to expect success response * add: clarifying comment about chain vs base providers
- Loading branch information
Showing
6 changed files
with
324 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...st-runtime/aws-config/test-data/default-provider-chain/imds_config_with_no_creds/env.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"HOME": "/home", | ||
"AWS_REGION": "us-east-1" | ||
} |
2 changes: 2 additions & 0 deletions
2
...aws-config/test-data/default-provider-chain/imds_config_with_no_creds/fs/home/.aws/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[default] | ||
max_attempts = 1 |
Oops, something went wrong.