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.

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.

전문가
답변함 일 년 전
profile pictureAWS
전문가
검토됨 일 년 전
profile picture
전문가
검토됨 일 년 전
  • 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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠