You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please fill out the sections below to help us address your issue.
Version of AWS SDK for PHP?
3.130.3
Version of PHP (php -v)?
PHP 7.3.6
What issue did you see?
AWS SDK for PHP tries to read ~/.aws/config dozens of times when using the S3 client. It's not necessary as the file does not exist and we provided all S3-related config keys to the client in the constructor.
Steps to reproduce
If you have a runnable example, please include it as a snippet or link to a repository/gist for larger code examples.
This is how the $args passed to Aws\S3\S3Client look like:
I also learned that some of the read attempts go down when I additionally pass s3_us_east_1_regional_endpoint: legacy in there (even when we use a different region).
Additional context
Any additional information relevant to the issue. Examples include any framework you may be using (e.g. Laravel, Wordpress) in conjunction with the AWS SDK for PHP, or PHP/environment config settings if the issue is related to memory or performance.
This is causing us performance issues.
The text was updated successfully, but these errors were encountered:
Hi @ondrejmirtes, thanks for reaching out about this and apologies for the long delay in response on our end. We have a task to investigate the implementation of a single configuration option that would prevent the SDK from reading the shared configuration file altogether. Once we have additional information on this we'll update the issue accordingly.
In the meantime, in addition to s3_us_east_1_regional_endpoint there are a few configuration options that the SDK looks for in the shared configuration file. Setting the following environment variables to the given values should prevent the SDK from attempting to parse the shared configuration file:
Please fill out the sections below to help us address your issue.
Version of AWS SDK for PHP?
3.130.3
Version of PHP (
php -v
)?PHP 7.3.6
What issue did you see?
AWS SDK for PHP tries to read
~/.aws/config
dozens of times when using the S3 client. It's not necessary as the file does not exist and we provided all S3-related config keys to the client in the constructor.Steps to reproduce
If you have a runnable example, please include it as a snippet or link to a repository/gist for larger code examples.
This is how the
$args
passed toAws\S3\S3Client
look like:I also learned that some of the read attempts go down when I additionally pass
s3_us_east_1_regional_endpoint: legacy
in there (even when we use a different region).Additional context
Any additional information relevant to the issue. Examples include any framework you may be using (e.g. Laravel, Wordpress) in conjunction with the AWS SDK for PHP, or PHP/environment config settings if the issue is related to memory or performance.
This is causing us performance issues.
The text was updated successfully, but these errors were encountered: