I have two VPCs:
- Inbound VPC with CIDR 10.0.0.0/16 (2 public subnets)
- Private VPC with CIDR 10.1.0.0/16 (Private endpoints)
Both are connected with a Transit Gateway and I can resolve the DNS and the private APIs from the inbound VPC to the private VPC using a curl command from a EC2 instance.
However, I have created an ALB in the Inbound VPC that forward to the private DNS only accessible from the inbound VPC with the Transit Gateway and it cannot resolve it.
I think it's trying to resolve the forward DNS outside the VPC. The unique solution I see is to create an EC2 instance with a proxy (Nginx/Apache) and redirect the traffic from it.
Is there any other solution with it? For example, use Route 53 Resolver?
Thanks