title: ETIMEDOUT error when deploying Node.js app to Elastic Beanstalk
body: <p>I'm hoping I can get some help with this deployment issue that I'm facing:</p>
  <p>I have created an RDS instance and can see it is &quot;Available&quot; by looking at the dashboard. I then use the Elastic Beanstalk CLI to deploy my application and the deployment is successful.</p>
  <p>However, when I access the endpoint I am getting a 502 Bad Gateway from nginx. After checking the logs I can see the following error from my Node.js app:</p>
  <blockquote>
  <p>Error: connect ETIMEDOUT x.x.x.x:5432 (ip ommitted)</p>
  </blockquote>
  <p>As per the <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html" rel="nofollow noreferrer">AWS documentation on this</a> I have tried to assign the auto generated security group from my Elastic Beanstalk instance to my RDS instance, but I am still getting the same error.</p>
  <p>Is there something I have misunderstood in the documentation here? I would be very grateful if anyone can point me in the right direction here.</p>
  <p>Thank you in advance.</p>