sunmingtao / sample-code

3 stars 4 forks source link

Create my own VPC steps #158

Closed sunmingtao closed 4 years ago

sunmingtao commented 4 years ago

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