1 Create VPC
2.1. Create Subnet (Public and Private), associate with my-vpc
2.2 For public subnet, enable auto-assign IP settings
3 Create EC2 instance, associate with my-vpc
4 Create Internet gateway, associate with my-vpc
5.1 Create two route tables (one of public, one for private)
5.2 Associate public route table with public subnet, associate private route table with private subnet
5.3 Add rule for public route table (destination=0.0.0.0/0, target=my-internet-gateway
1 Create VPC 2.1. Create Subnet (Public and Private), associate with my-vpc 2.2 For public subnet, enable auto-assign IP settings 3 Create EC2 instance, associate with my-vpc 4 Create Internet gateway, associate with my-vpc 5.1 Create two route tables (one of public, one for private) 5.2 Associate public route table with public subnet, associate private route table with private subnet 5.3 Add rule for public route table (destination=0.0.0.0/0, target=my-internet-gateway
Now can ssh to EC2 instance