Connecting to internet through VPC peering

0 votes
I have two custom VPCs for Private & public access: VPC1(private) & VPC2(public). Each VPC has one subnet and further one EC2 with proper inbound rules. I can update software in public EC2 which is fine. Also, I can establish an SSH connection between those two Ec2 after VPC-peering. But my goal is to use the internet on PVT EC2 via public EC2. To achieve that I must add the NAT-gateway of VPC2 onto the Route table of VPC1(if I am not wrong). However, the NAT gateway is not visible on the VPC2-route table. Though, I can use NAT-gateway from private subnet to public subnet in the case when both subnets are within a single VPC. But, here I am struggling when they are in two different VPCs. Any advice, please?
Apr 25, 2022 in AWS by Soham
• 9,700 points
271 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to attach an Internet Gateway to a VPC?

To attach an Internet Gateway to a ...READ MORE

answered Feb 21, 2019 in AWS by Priyaj
• 58,090 points
870 views
0 votes
1 answer

Why AWS recommends to avoid the use of public/internet gateways in favor of AWS PrivateLink and VPC endpoints?

Public applications are available over the internet. ...READ MORE

answered Feb 9, 2022 in AWS by anonymous
923 views
0 votes
1 answer

Difference between AWS Site-to-Site VPN and AWS VPC peering?

AWS Site to Site enables access to ...READ MORE

answered Feb 15, 2022 in AWS by anonymous
929 views
0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,090 points
2,598 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP