A security group is a collection of access control rules to control the traffic that is allowed to reach and leave the cloud resources that it is associated with. The cloud resources can be cloud servers, containers, databases, and more. Cloud resources associated with the same security group have the same security requirements and are mutually trusted within a VPC. A security group consists of inbound and outbound rules.
If your instances have different Internet access requirements, you can allocate them to different security groups when creating them.
Each ECS must be associated with at least one security group. If you do not have a security group when creating an ECS, the system provides a default security group.
The Virtual Private Cloud page is displayed.
The security group list is displayed.
The Create Security Group page is displayed.
Parameter |
Description |
Example Value |
---|---|---|
Name |
Mandatory Enter the security group name. The security group name can contain a maximum of 64 characters, which may consist of letters, digits, underscores (_), hyphens (-), and periods (.). The name cannot contain spaces. NOTE:
You can change the security group name after a security group is created. It is recommended that you give each security group a different name. |
sg-AB |
Enterprise Project |
Mandatory When creating a security group, you can add the security group to an enabled enterprise project. An enterprise project facilitates project-level management and grouping of cloud resources and users. The name of the default project is default. |
default |
Template |
Mandatory The system provides several security group templates for you to create a security group. A security group template has preconfigured inbound and outbound rules. You can select a template based on your service requirements. Table 1 describes the security group templates. |
General-purpose web server |
Description |
Optional Supplementary information about the security group. This parameter is optional. The security group description can contain a maximum of 255 characters and cannot contain angle brackets (< or >). |
N/A |