Updated on 2025-12-26 GMT+08:00

Changing a Security Group

Scenarios

This section describes how to change the security group of a primary DB instance or read replica. For primary/standby DB instances, changing the security group of the primary DB instance will cause the security group of the standby DB instance to be changed as well.

Precautions

You can add or modify rules for the security group associated with your RDS instance, but cannot disassociate or delete the security group.

Managing Security Groups

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Database > Relational Database Service.
  4. On the Instances page, click the DB instance or read replica.
  5. On the Basic Information page, find Security Group and click Manage.

    • You can select multiple security groups at a time. The security group rules will be applied based on the following sequence: the first security group associated will take precedence over those associated later, then the rule with the highest priority in that security group will be applied first.
    • To create a new security group, click Create Security Group.

    Using multiple security groups may impact the network performance. Selecting more than five security groups is not recommended.

  6. Click OK to submit the modification.