0

Right now I have a VPC where my RDS in a private subnet, also I have a ECS in the same VPC and both have communication, now the problem is, I have a new ECS but in another VPC, first I tried to do a VPC peering, but both VPC have the CIDR overlapping. What can I do?

I expect to have a solution for my problem

1

1 Answer 1

0

You can't peer overlapping VPCs. You can create attachments to a Transit Gateway for overlapping VPCs, BUT it will not let you propagate two identical CIDRs, and only the first route is propagated so it's not routable.

The easiest way around this (without faffing with S2S VPNS + NATs or AWS Private NAT GW + TGW) is using AWS Private Link. It is useful for Producer/Consumer architectures and is compatible with over-lapping CIDRs as it uses VPC Endpoints.

Here is more info: https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.