Give internet to VPC B which is private from VPC A which is public and has internet access

0

Hi, I have created two vpc's and those are connected together by Transit gateway. now I want to give internet to VPC B without having an internet gateway in VPC B, I mean I want to give internet from VPC A to VPC B, we can use NAT gateway, I have tried things like keeping IG and Public NAT in VPC A and then adding Route to VPC B to redirect 0.0.0.0 to TGA but it did not successful as well.. basically I want to achieve that my VPC B which is private should have internet but we cant have Internet gateway in that VPC B. If anyone knows possible ways to do it, it will really be helpful.

Shriram
已提问 1 年前305 查看次数
2 回答
3
已接受的回答

The setup you are proposing is definitely possible. The main source of issues is to get the routing in both VPCs and on Transit Gateway right. To debug that more information would be needed but as a start you might want to check this blog article: https://aws.amazon.com/blogs/networking-and-content-delivery/creating-a-single-internet-exit-point-from-multiple-vpcs-using-aws-transit-gateway/

It describes exactly your setup and shows examples of routing tables and the necessary modifications.

专家
已回答 1 年前
profile pictureAWS
专家
已审核 1 年前
profile picture
专家
已审核 1 年前
  • Thank you Andreas, it worked for me, just a thing like I want to have communication enable between my VPC's and as per this document it doesn't allow me to communicate between two VPC.

1

It's possible and supported. Pleaser also refer to https://docs.aws.amazon.com/vpc/latest/tgw/transit-gateway-nat-igw.html for more details. I do want to point out that it will incur additional charges on TGW if cost is also a concern.

profile pictureAWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则