I have a VPC with 3 private and one public subnets. In the 3 private subnets i host the RDS and the Lambda functions. In the public subnet i host a NAT Gateway. The 3 private subnets point via a routing table to the NAT Gateway. Within this setup my Lambda functions successfully communicate with my RDS and the Internet, but I cannot access the RDS from my home computer as the NAT is blocking external access to the VPC. My question is now:
How do I let the Lambda functions access the RDS within the VPC and make the RDS public accessible from my computer at the same time?
P.S.: Until now I always have to change manually the routing of my 3 private subnets to the IGW to make the RDS accessible.