Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: honor use_aws_shared_config_files #3027

Merged

Conversation

yenfryherrerafeliz
Copy link
Contributor

Honor the use_aws_shared_config_files config from default_region and default_sigv4a_signing_region_set by passing $args along to the ConfigurationResolver::resolve call.

Issue #3026

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Honor the `use_aws_shared_config_files` config from `default_region` and `default_sigv4a_signing_region_set` by passing `$args` along to the `ConfigurationResolver::resolve` call.
Copy link
Member

@stobrien89 stobrien89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a request to remove the tests— we cover that behavior in ConfigurationResolverTest and this test class is arguably bloated already.

tests/ClientResolverTest.php Outdated Show resolved Hide resolved
Add a single method for testing `use_aws_shared_config_files` config is passed along to the default config resolution.
@yenfryherrerafeliz yenfryherrerafeliz force-pushed the fix_honor_use_aws_shared_config_files branch 2 times, most recently from ff218bd to 2e87233 Compare November 26, 2024 21:39
src/ClientResolver.php Outdated Show resolved Hide resolved
src/ClientResolver.php Outdated Show resolved Hide resolved
src/ClientResolver.php Outdated Show resolved Hide resolved
@yenfryherrerafeliz yenfryherrerafeliz force-pushed the fix_honor_use_aws_shared_config_files branch from 2e87233 to e2369a1 Compare November 27, 2024 18:16
Resolve config default values that uses just the ConfigurationResolver::resolve method, from just a single method. This avoids the overhead of having layers of methods for just consuming `ConfigurationResolver::resolve`, and instead this one will be called directly.
@yenfryherrerafeliz yenfryherrerafeliz force-pushed the fix_honor_use_aws_shared_config_files branch from e2369a1 to ad5f4a6 Compare November 27, 2024 18:50
@stobrien89 stobrien89 merged commit bfe2279 into aws:master Nov 27, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants