InstanceProfile
is too slow compared to credentials
#2778
Labels
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
I have run the identical PHP code in an EC2 instance to access an RDS instance with:
Both work as expected, no issue with getting the credentials and making calls to other services (RDS, SecretsManager, STS) to retrieve data.
However, the 2. option with instance credentials is much slower causing terrible user experience on the website. It takes 2 seconds for each call stacking up to longer waiting times for multiple calls.
I used the sample code provided by AWS:
Also tried with this code for the provider:
Expected Behavior
Fast response
Current Behavior
Slow response
Reproduction Steps
See the code above
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.2, Ubuntu, Docker
The text was updated successfully, but these errors were encountered: