I have a database in us-east-1 region which does not allow public access. I have ecs tasks in us-west-1 region in a private subnet. How can I allow the security group of the ecs in us-west-1 access the database in us-east-1 region since the database is not publicly accessible.
I tried using vpc peering connection but this did not work because the cidr ranges of the vpcs in us-east-1 and us-west-1 overlap. What is the best way to allow this traffic?
Techtacles is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You can use AWS PrivateLink and NLB to get access to your database from another AWS Region. You will pay for traffic on your AWS PrivateLink.