- I am trying to connect Lambda to RDS but my connection to DB times out and connection does not go through successfully.
- My RDS is not in Amazon VPC and my lambda is in Amazon VPC.
- I added VPC settings to my lambda so that it can have a static IP according to the link here
- Once my lambda was assigned a static IP, i added it to the DB security group of RDS to whitelist the IP. But the connection still keeps on timing out.
Can anyone help me out with this?
Thanks in advance!