AWS VPC

Step summary:

  1. create a VPC
  2. Create a public and private Subnet
  3. Create internet gateway
  1. you can either create your public and private subnets.
  2. Launching resources with your own private ip address.
Click VPCs
Click Close
The one with the name is the one you have created. Choose that one.
Click Close
I made a mistake, name it ‘public’
rename it to public if it isn’t public.
Click edit routes
Now you’ll notice your elastic ips are available and connected.
[ec2-user@ip-10-0-1-190 ~]$ ping www.google.com
add your private pem to the remote public connection, by dragging it in (shown right)
[ec2-user@ip-10-0-1-190 ~]$ ls
LinuxPrivateNet.pem
Grab the private IP address.
[ec2-user@ip-10-0-1-190 ~]$ sudo ssh -i "LinuxPrivateNet.pem" ec2-user@YourPrivateIP
Should show this.
Whatever you want
Whatever you want
Choose the VPC you created.
Manually type the same source for these Inbound rules.
We can have them both be “Anywhere” for outbound rules.
Hopefully you will see your security group is successfully created.
Now launch instance.
SELECT
You should see your types in the security group you created.
Click Next.
Go to your instances and name it something nat related.
We disabled this nat instance as a destination, so instead it will act as a bridge between the public and private instance.
Click Close
Click edit routes
Copy the public ip

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store