RDS Multi-AZ deployment is not enabled

Configure RDS Multi-AZ failover and application reconnection to meet availability requirements.

Description

For an RDS MySQL DB instance that needs automatic failover, set MultiAZ: true to maintain a standby in another Availability Zone.

Potential impact

A Single-AZ instance has no standby to take over, so failure or maintenance can interrupt applications for longer.

Remediation

Check instance support, cost and the impact of the change. Test that the application reconnects after failover and retain a backup and recovery plan. Aurora has its own cluster availability settings.

Examples

Supply a supported DBInstanceType and the network settings. In both excerpts RDS manages the administrator password in Secrets Manager.

Before

yaml
Resources:
  MasterDB:
    Type: AWS::RDS::DBInstance
    Properties:
      DBName: MyDatabase
      AllocatedStorage: "20"
      DBInstanceClass: !Ref DBInstanceType
      Engine: mysql
      MasterUsername: admin
      ManageMasterUserPassword: true

After

yaml
Resources:
  MasterDB:
    Type: AWS::RDS::DBInstance
    Properties:
      DBName: MyDatabase
      AllocatedStorage: "20"
      DBInstanceClass: !Ref DBInstanceType
      Engine: mysql
      MasterUsername: admin
      ManageMasterUserPassword: true
      MultiAZ: true

The standby in the second configuration can take over in a failure. It does not serve read-scaling traffic.

References