Virtual Private Cloud (VPC) 是AWS的虚拟网络。在逻辑上每一个VPC都与 AWS 云中的其他VPC隔绝。 Amazon EC2 实例,Amazon RDS实例等常见的云资源都需要启动在VPC中。
创建一个VPC,需要指定 IP 地址范围、添加子网、关联安全组并配置路由表,对不熟悉网络相关概念和AWS控制台操作的用户来说,这些操作都有一定的难度。
为了方便用户,我们编写了相应的CloudFormation模板,帮助用户迅速的搭建一个包含3个子网,并且配置了安全组和路由表的VPC。
模板的S3地址是 https://s3-ap-northeast-1.amazonaws.com/s3.awstweaker.com/onekey/vpc.json
您可以在你想要建立VPC的区域打开控制台,进入CloudFormation服务页面。
使用这个模板,建立一个新的堆栈。您输入的堆栈名称就是VPC的名称,您还可以自己设置VPC和子网的CIRD。
参考下面的图,点击下一步,下一步创建堆栈后,只需要1分钟,一个包含3个子网已经配置好网关,路由的VPC就自动创建成功了。
Virtual Private Cloud (VPC) is AWS's virtual network. Logically, each VPC is isolated from other VPCs in the AWS cloud. Common cloud resources such as Amazon EC2 instances and Amazon RDS instances need to be launched within a VPC.
Creating a VPC requires specifying IP address ranges, adding subnets, associating security groups, and configuring routing tables. For users unfamiliar with network-related concepts and AWS console operations, these tasks present certain difficulties.
To facilitate user convenience, we have written a corresponding CloudFormation template to help users quickly set up a VPC containing 3 subnets with security groups and routing tables configured.
The template's S3 URL is https://s3-ap-northeast-1.amazonaws.com/s3.awstweaker.com/onekey/vpc.json
You can open the console in the region where you want to create the VPC and navigate to the CloudFormation service page.
Using this template, create a new stack. The stack name you enter will be the VPC name, and you can also set the CIDR for the VPC and subnets yourself.
As shown in the figure below, after clicking Next, Next to create the stack, it only takes 1 minute for a VPC containing 3 subnets with gateways and routes configured to be automatically created successfully.