Skip to content

Ensure Relational Database Service is Multi-AZ Enabled

Description

Checks whether or not the MultiAz setting is enabled for this RDS instance.

Rationale

For production workloads, ensuring availability in the face of a hardware outage is critical.

Applies To

  • Databases

Tags

This rule is applied when the following tags are present:

Tag With Value
secureclouddb/provider aws
secureclouddb/service rds
secureclouddb/resource-type db

Default Rule

/**
 * @param {Object} databaseSettings - database settings object
 * @returns {boolean} true if the multi-available zone option is configured
 */
function validate(databaseSettings) {

    const success = databaseSettings.awsDatabaseInstance &&
        databaseSettings.awsDatabaseInstance.rdsDatabaseInstance &&
        databaseSettings.awsDatabaseInstance.rdsDatabaseInstance.multiAz &&
        databaseSettings.awsDatabaseInstance.rdsDatabaseInstance.multiAz.multi
    return {
        success,
    }
}

// invoke
validate(databaseSettings);