title: AWS Lambda Function Timeout on Connecting To RDS Database through RDS Proxy
body: <p>I'm trying to test AWS RDS proxy so I created a lambda function and done all steps that are present in this official link</p>
  
  <p><a href="https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda" rel="noreferrer">https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda</a></p>
  
  <ul>
  <li>store RDS credentials in Secret Manager</li>
  <li>create new role and also add Trust Policy</li>
  <li>in lambda function, from the AWS console, add proxy and its status is available.</li>
  </ul>
  
  <p>When I execute the lambda function, it times out with no errors it seems like the error might be on connecting to db with rds proxy because when I run the lambda function again without proxy, it works just fine.</p>
  
  <p>I initially thought that it might be a security group issue, so I edit the security group of RDS Proxy and update inbound and allow 0.0.0.0 (outbound was already 0.0.0.0).</p>
  
  <p>I used defaut VPC in RDS Database and RDS Proxy. The endpoint of RDS database is public.</p>