InstanceProfile credentials provider causing open_basedir restriction error since 3.297.0 #2887
Labels
bug
This issue is a bug.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p2
This is a standard priority issue
Describe the bug
With version 3.297.0 of the SDK the custom endpoint for IMDS was introduced in the InstanceProfileProvider.
It calls
ConfigurationResolver::resolve()
with the optionuse_aws_shared_config_files
set to true, which causes an ErrorException because of the open_basedir setting.Expected Behavior
The config option
use_aws_shared_config_files
should not be set to true, but reflect the client setting instead, so no error is thrown because of open_basedir restrictions.Current Behavior
Reproduction Steps
open_basedir
in php.ini with excluded Apache working directory.Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.299.1
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.2, Amazon Linux 2
The text was updated successfully, but these errors were encountered: