In the methods ClientResolver::_default_sigv4a_signing_region_set() and ClientResolver::_default_region(), the $args argument is not being passed to the ConfigurationResolver::resolve() method.
This means the config option use_aws_shared_config_files is not respected.
Additional Information/Context
No response
SDK version used
3.326.0
Environment details (Version of PHP (php -v)? OS name and version, etc.)
Describe the bug
The
use_aws_shared_config_files
config setting is not respected when resolving the following client configuration options:region
sigv4a_signing_region_set
This causes the
ConfigurationResolver::resolve()
function to check for~/.aws/config
files unnecessarily.Regression Issue
Expected Behavior
By setting the
use_aws_shared_config_files
config option, when all other config options are resolved, the shared config files should never be checked.Current Behavior
Currently shared config files are checked for
region
andsigv4a_signing_region_set
.Reproduction Steps
Possible Solution
In the methods
ClientResolver::_default_sigv4a_signing_region_set()
andClientResolver::_default_region()
, the$args
argument is not being passed to theConfigurationResolver::resolve()
method.This means the config option
use_aws_shared_config_files
is not respected.Additional Information/Context
No response
SDK version used
3.326.0
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.3.13, MacOS 15.1 (24B83)