RDS Aurora cluster multi-AZ should be enabled

Description

An Aurora cluster in a Multi-AZ (availability zone) deployment provides enhanced availability and durability of data. When an Aurora cluster is provisioned, Amazon creates a primary DB instance and replicates the data to a Aurora replica in another availability zone.

Console Remediation Steps

AWS does not allow you to change an Aurora cluster’s multi-AZ setting after deployment.

To create a new Aurora cluster with multi-AZ enabled:

  • Navigate to RDS.

  • Select Create Database.

  • Select Standard Create.

  • Select Amazon Aurora as the engine type.

  • Under Availability & durability, Multi-AZ deployment, select Create an Aurora Replica/Reader node in a different AZ.

  • Configure the rest of the settings as desired.

  • Select Create Database.

CLI Remediation Steps

AWS does not allow you to change an Aurora cluster’s multi-AZ setting after deployment.

To create a new Aurora MySQL DB cluster with multi-AZ enabled:

  • Create the Aurora MySQL DB cluster:

aws rds create-db-cluster --db-cluster-identifier <db cluster identifier> --engine aurora-mysql \
     --engine-version 5.7.12 --master-username <username> --master-user-password <password> \
     --db-subnet-group-name <subnet group name> --vpc-security-group-ids <sg-ids>
  • Create the primary instance for your MySQL DB cluster:

aws rds create-db-instance --db-instance-identifier <db instance identifier> \
     --db-cluster-identifier <db cluster identifier> --engine aurora-mysql --db-instance-class <instance class>

To create a new Aurora PostgreSQL DB cluster with multi-AZ enabled:

  • Create the PostgreSQL DB cluster:

aws rds create-db-cluster --db-cluster-identifier <db cluster identifier> --engine aurora-postgresql \
     --master-username <username> --master-user-password <password> \
     --db-subnet-group-name <subnet group name> --vpc-security-group-ids <sg-ids>
  • Create the primary instance for your PostgreSQL DB cluster:

aws rds create-db-instance --db-instance-identifier <db instance identifier> \
     --db-cluster-identifier <db cluster identifier> --engine aurora-postgresql --db-instance-class <instance class>