All Products
Search
Document Center

Elastic Compute Service:Modify a security group rule

Last Updated:May 14, 2024

Improper configurations of security group rules can result in serious security risks. You can modify rules in a security group based on your business requirements to ensure the network security of Elastic Compute Service (ECS) instances in the security group. This topic describes how to modify a security group rule in the ECS console.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Network & Security > Security Groups.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Find the security group whose rules you want to modify and click Manage Rules in the Actions column.

  5. Select the direction of security group rules.

    • If the security group resides in a virtual private cloud (VPC), click the Inbound or Outbound tab.

    • If the security group resides in the classic network, click the Internet Ingress, Internet Egress, Inbound, or Outbound tab.

  6. Find the security group rule that you want to modify and click Modify in the Actions column.

  7. After you modify the security group rule, click Save.

    Note

    The modified security group rule immediately takes effect on the ECS instances in the security group.

References

  • You can call an API operation with the ID of a security group rule to modify the rule.

  • After you modify security group rules, you may need to monitor network traffic and network connections to ensure that the modified rules meet your business requirements and help ensure network security. For more information, see What is CloudMonitor?.