How can I use SQLAlchemy in a Lambda service in the EU-West-1 region to write to a DB instance in the US-East-1 region from same account?
I have attempted to establish a VPC peering connection between the accepting VPC in US-East-1 (which has the RDS resource) and the requester VPC (EU-West-1, which has the lambda resource). The CIDR block for US-East is 10.0.0.0/16 and the CIDR block for EU-west-1 is 172.0.0.0/27.
Background: I created a custom VPC in the EU-West-1 region. After setting up a peering connection with US-East-1. I configured all the route tables under the us-east-1 VPC where the destination is peer VPC CIDR block (172.0.0.0/27) and subnet addresses of eu-west-1, and the target is VPC peer connection...and vice versa.
The security groups of both VPCs are referencing their peer VPC CIDR and peer subnet CIDR as inbound rules.
I am new to this process and would like to know if anyone has done this before. I am not sure what else I can do here.
I am expecting that the Lambda would be able to insert records in the US-East-1 RDS