Amazon VPC

Hands-On

Demo

Hands-On Demo Overview

Create Custom VPC

Custom VPC Config

Create VPC workflow - Notice the components created

Custom VPC Summary

Resource Map View

2 VPCs Visible

Launch an EC2 Instance in Custom VPC

My-Ec2

Create a Key Pair to Login into EC2 Instance

my-key-pair-1

Select Custom VPC - Select 1 Public Subnet from Custom VPC - Auto Assign Public IP - Yes

Enable

Instance Summary - Note Public IP and Private IP

Connect to Instance

Launch CloudShell

Upload "my-key-pair-1.pem" to CloudShell and Connect

chmod 400 my-key-pair-1.pem

Launch an EC2 Instance in Default VPC

Default-VPC-Ec2
ssh -i "my-key-pair-1.pem" ec2-user@ec2-18-234-210-45.compute-1.amazonaws.com
sudo yum install nc
nc -zv 18.234.210.45 22 # public ip
nc -zv 10.0.8.181 22 # private ip

Connectivity Test from Custom VPC to Default VPC

ssh -i "my-key-pair-1.pem" ec2-user@44.203.151.191
sudo yum install nc
nc -zv 44.203.151.191 22  # public ip
nc -zv 172.31.85.240 22  # private ip

Connectivity Test from Default VPC to Custom VPC

Clean Up - Delete EC2 Instances

Clean Up - Delete Custom VPC

🙏

Thanks

for

Watching