Cloning a Security Group

Scenarios

You can clone a security group from one region to another to quickly apply the security group rules to ECSs in another region.

You can clone a security group in the following scenarios:

  • For example, you have security group sg-A in region A. If ECSs in region B require the same security group rules as those configured for security group sg-A, you can clone security group sg-A to region B, freeing you from creating a new security group in region B.
  • If you need new security group rules, you can clone the original security group as a backup.

Notes and Constraints

In cross-region security group cloning, only rules whose source and destination are CIDR blocks and rules whose source and destination are the current security group will be cloned.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. On the console homepage, under Network, click Virtual Private Cloud.
  4. In the navigation pane on the left, choose Access Control > Security Groups.
  5. On the Security Groups page, locate the row that contains the target security group and choose More > Clone in the Operation column.
  6. Set required parameters and click OK.

    You can then switch to the required region to view the cloned security group in the security group list.