Inquiry Regarding Outgoing Connection Timeout on AWS EC2 Instances

0

Dear AWS Support Team,

I hope this message finds you well. I am writing to seek clarification and assistance with a networking issue I am encountering on an AWS EC2 instance. I have a Spring Boot application running on an AWS instance, and this application is making a REST API call to an external service on the internet using the OkHttp Client. The external service typically takes around 14 minutes to respond.

I have configured the maximum timeout for this API call to 13 minutes, 14 minutes, and even extended it to 20 minutes in my code. However, when I initiate the API call from my application, it seems to be stuck in a waiting state for the configured timeout duration but does not receive a response from the external service. Interestingly, when I perform the same API call from my local system, it works as expected and returns a response within the specified timeout.

This issue has led me to suspect that there might be a connection timeout or network-related configuration on AWS EC2 instances that I am not aware of. I would appreciate your assistance in clarifying whether AWS imposes any connection timeout limitations for outgoing network calls made from EC2 instances and whether there are any specific network configuration settings I should be aware of that could be affecting my API calls.

I understand that AWS provides a range of security and networking features that may influence outbound connections, and I would like to ensure that my application's network settings are in alignment with AWS best practices.

If you could provide guidance or insights on this matter, I would greatly appreciate it. Additionally, if there are any diagnostics or specific logs that I should check to further investigate this issue, please let me know.

Thank you for your attention to this matter, and I look forward to your prompt response and assistance.

Sincerely,

Manohar Krishna Boppe manoharkrishna@testsigma.com

1 Antwort
0

Hello,

Greetings for the day!

I understand that you are getting Connection Timed out error on your instance while your application is trying to initiate an outbound network connection. In order to troubleshoot this issue I would suggest you to check the following:

- Check the Outbound rules present in the security group which is associated with your instance.
- Check the rules in Network ACL which is associated with the subnet in which your instance is present.
- If there is any firewall is present, then also check it's rules.
- Check the route table associated with your instance.

As the issue is specific to your instance, we may need to investigate this more based on your configurations. I would request you to raise a support case in regards to your concerns. As this is a public platform, I will not be able to provide any sensitive information here.

[+] https://console.aws.amazon.com/support/home#/case/create

Note: Please do not post any sensitive information over re:Post since this is a public platform.

Thank you

AWS
Kumar_S
beantwortet vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen