-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 BUG]: Region is missing from SQS endpoint URL when RR is running inside EC2 #1833
Comments
Hey @matteokov 👋 |
@rustatian thanks for a fast response :) Regarding the global So priority would be:
Let me know if you need any additional info regarding the endpoint region issue. |
Yeah, I'm currently verifying your info, but anyway, in 2024.1 I'll update this behavior (since this is a BC). |
@matteokov Could you please try to set |
@rustatian This fixed an issue and RoadRunner started normally |
It looks like a bug in the AWS GO SDK, I found an issue stating about the same problem. |
But, I found a way how to support both, the global |
Ok, since I can't control the changed behavior in the AWS SDK, the global configuration would be able to override the existing IAM values since the next bugfix version (2023.3.9) |
The fix will be released next Thursday. |
No duplicates 🥲.
What happened?
After I moved my application to EC2 I started getting an error when
GetQueueUrl
is performed:sqs..amazonaws.com: no such host
.It looks like the region part is missing from the endpoint. If I try to override an endpoint with
sqs
config key, this is ignored and the same error occurs.If I understood correctly, Inside the EC2 instance, RoadRunner should look for identity by sending a request to
http://169.254.169.254/latest/dynamic/instance-identity/
. Later, AWS Go SDK should fetch credentials from EC2 and use them to perform requests to SQS.To debug, I sent a request to
http://169.254.169.254/latest/dynamic/instance-identity/document
from inside the instance and I can see that my region iseu-central-1
.I'm using Symfony and
baldinof/roadrunner-bundle
but this shouldn't be relevant to reproduce an issue as it fails before even reaching PHP/Symfony.Version (rr --version)
Tested on both 2023.3.6 and 2023.3.8
How to reproduce the issue?
RoadRunner config:
Run the application in EC2 instance with PHP version 8.2
Relevant log output
The text was updated successfully, but these errors were encountered: