This section guides you on how to change a security group for cluster, replica set, and single node instances. If any of the following operations is in progress, do not change the security group:
Ensure that the new security group does not affect the DB instance connection. Otherwise, the connection may be interrupted.