Create a Security Group

A security group is a virtual firewall for an ECS instance. This topic describes how to create a security group in the ECS console.

If you want to create a VPC-type security group, ensure that you created a VPC and a VSwitch. For more information, see Create a Virtual Private Cloud and Create a VSwitch.

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose > Network & Security > Security Groups .
  3. On the Security Groups page, select Create Security Group. The Create Security Group dialog box appears.
    Figure 1. Creating a Security Group
  4. In Create Security Group, configure the following parameters:
    1. From the Template menu, select a suitable template to simplify security group rule configuration. For example, select Customize.
    2. In Security Group Name, enter a valid name for the security group.
    3. From the Network Type menu, select VPC.
    4. From the VPC menu, select your VPC.
  5. Select OK and display a message that recommends creating security group rules.

    After creating the security group, a new security group displays in the security group list.

After creating a security group, it is recommended to immediately create security group rules. Otherwise, you may not be able to access the internal network or Internet. For steps, see Add Security Group Rules.