Can I Change the Security Group of an ECS?
Yes.
An ECS must be associated with a security group. You can change the security group of an ECS at any time.
On the ECS console, locate the target ECS to change the security group on the ECS details page.
For details, see Changing a Security Group.