Can I Change the Security Group to Which an ECS Belongs?

2



Yes. Log in to the ECS console, switch to the page showing ECS details, and change the security group to which the ECS belongs.



Other related questions:
Which Security Group Rule Has Priority When Multiple Security Group Rules Conflict?

Security group rules use the whitelist mechanism. If multiple security group rules conflict, the union of these rules takes effect.


Which Protocols Does a Security Group Support?

The protocol used by a security group can be set to TCP, UDP, ICMP, or ANY. ANY indicates that the security group takes effect for all protocols. If the TCP or UDP protocol is selected, configure ports 1 to 65535 for the protocols to access the security group. If the ICMP protocol is selected, you can set the ICMP protocol type. The default value is ANY.


How Can I Configure Security Group Rules?

Security group rules consist of inbound and outbound rules.

When adding an inbound rule, you can set the source address to a security group or CIDR block. If you want to set the source address to a security group, you can only select security groups from the same VPC as the destination security group.

When adding an outbound rule, you can set the destination address to a security group or CIDR block. If you want to set the destination address to a security group, you can only select security groups from the same VPC as the source security group.

ECSs in security groups in different VPCs cannot communicate with one another. To allow them to communicate, bind EIPs to them and configure security group rules.


If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top