I am in the Situation here where I have to connect public API using 1 IP (Whitelisting issue) thru my various dockers, hence using NAT Gateway. At the same time, Docker also needs to connect to RDS (from another VPC) and do some read/write.
How do ew achieve this? Is it possible to have public traffic route thru NAT Gateway and private traffic thru VPC Peering - to another VPC?
Thanks in Advance.
I spent two days getting to this answer, hence posting it for people with similar use-case.
Implementation:
Testing:
Result: