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.
Security group cloning is not supported now.
Notes and Constraints
If you clone security group across regions, the system will clone only rules whose source and destination are CIDR blocks or are in the current security group.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - Click
in the upper left corner and choose Network > Virtual Private Cloud. - In the navigation pane on the left, choose Access Control > Security Groups.
- On the Security Groups page, locate the row that contains the target security group and choose More > Clone in the Operation column.
- Set required parameters as prompted.
Figure 1 Clone Security Group
- Click OK. You can then switch to the required region to view the cloned security group in the security group list.