Remediation
Using AWS CloudFormationโ
- CloudFormation template (YAML):
AWSTemplateFormatVersion: '2010-09-09'
Description: Enables Multi-AZ deployment for an existing RDS instance.
Parameters:
DBInstanceIdentifier:
Type: String
Description: The ID of the existing RDS instance
Resources:
MultiAZRDSInstance:
Type: AWS::RDS::DBInstance
Properties:
DBInstanceIdentifier: !Ref DBInstanceIdentifier
MultiAZ: true
From Consoleโ
- Login to the AWS Management Console and open the RDS dashboard.
- In the left navigation pane, click on
Databases. - Select the database instance that needs Multi-AZ deployment to be enabled.
- Click the
Modifybutton at the top right. - Scroll down to the
Availability & Durabilitysection. - Under
Multi-AZ deployment, selectYesto enable. - Review the changes and click
Continue. - On the
Reviewpage, chooseApply immediatelyto make the change without waiting for the next maintenance window, orApply during the next scheduled maintenance window. - Click
Modify DB Instanceto apply the changes.
From Command Lineโ
- Run the following command to modify the RDS instance and enable Multi-AZ:.
aws rds modify-db-instance --region <region-name> --db-instanceidentifier
<db-name> --multi-az --apply-immediately
- Confirm that the Multi-AZ deployment is enabled by running the following command:
aws rds describe-db-instances --region <region-name> --db-instanceidentifier
<db-name> --query 'DBInstances[*].MultiAZ'
- The output should return
True, indicating that Multi-AZ is enabled.
- Repeat the procedure for other instances as necessary.