Updated on 2026-04-24 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 you cannot disassociate or delete the security group.

Procedure

  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 primary DB instance or read replica.
  5. In the Connection Information area on the Basic Information page, find the Security Group field, click , and select a security group.

    • To submit the change, click .
    • To cancel the change, click .

  6. Changing the security group takes 1 to 3 minutes. Click in the upper right corner on the Basic Information page to view the results.