All Products
Search
Document Center

Cloud Architect Design Tools:Replace an ECS/ENI security group with CADT

Last Updated:Jun 23, 2026

You can use Cloud Architect Design Tools (CADT) to quickly replace the security group for an ECS instance or elastic network interface (ENI).

Replacement rules

Product

Original group type

New group type

ECS

basic security group

  • basic security group

  • advanced security group

advanced security group

  • basic security group

  • advanced security group

ENI

basic security group

basic security group

advanced security group

advanced security group

Note
  • Before you replace a security group, ensure the new security group is correctly configured and tested to prevent service interruptions.

  • An ECS instance can join security groups of only one type. It cannot be associated with both a basic security group and an advanced security group.

Procedure

Important

To replace a security group with CADT, you first create or import the new security group and then delete the original one.

  1. Log in to the Cloud Architect Design Tools (CADT) console and go to the Application > My Applications page.

  2. Find the target application and click View Architecture to view the deployed cloud architecture.

  3. Enable Edit mode. In the product list on the left, enter security group in the search box. From the search results, drag security group into the VPC on the architecture canvas.

  4. Double-click the new security group. In the Security group details panel on the right, set Security group name to security_group_new.

  5. Verify that the new security group contains the required instances.

    At the bottom of the Security group details panel, in the Products included in security_group_new section, confirm that the ecs and eni resources are associated.

  6. Click Save and then Deploy Application.

  7. After the deployment succeeds, enable Edit mode. Right-click the old security_group and select Delete from the shortcut menu. Click Deploy Application. When prompted to confirm the release of the running security_group resource, click Confirm.

  8. Click Save and then Deploy Application.

  9. After the deployment succeeds, the old security group is deleted and the new one is running. In the Resource deployment status dialog box, confirm that the status of security_group is Deleted and the status of security_group_new is Running. The deployment summary shows Deployment Succeeded.image

  10. Double-click the security group and click Go to Console to view the deployed ECS instances and ENIs.

    • Instances in security group: Click the Instances in security group tab to confirm that the security group is associated with the correct ECS instance.

    • ENIs in security group: Click the ENIs in security group tab to view associated ENIs. The list shows the ENI ID/name, vSwitch/VPC, availability zone, security group ID, bound instance ID, public IP address, private IP address, and ENI type/MAC address.