A security group functions similarly to virtual firewalls, and is used to set network access controls for one or more ECS instances. When creating instances, you must select a security group. You can also add security group rules to control outbound and inbound network access for all ECS instances in the security group.
To create a security group, perform the following:
Log on to the ECS console.
In the left-side navigation pane, click Security Groups.
Select a region.
Click Create Security Group. In the displayed dialog box, enter the following:
Security Group Name
The length must be 2−128 characters. It can contain uppercase letters, lowercase letters, and Chinese characters. It cannot contain numbers, underscores (_), or hyphens (-).
The length must be 2−256 characters. Do not start with
- Network Type
There are two network types, Classic network and VPC. If you select VPC, you must select a specific VPC. If no VPCs have been created in the current region, you must create one first.