awsdocs / aws-php-developers-guide

The open source version of the AWS SDK for PHP developer Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
Other
29 stars 34 forks source link

Update config cached credentials example #79

Closed diehlaws closed 4 years ago

diehlaws commented 4 years ago

Description of changes: Current example of cached credentials does not work due to the order in which the default credential provider retrieves credentials. Specifying the cached credentials provider in credentials resolves this behavior. Changed client instantiation statement to keep it consistent with the examples above this one.

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