Skip to content

Enable Cross-region Snapshots

Description

AWS Redshift supports automated cross-region snapshots, which can contribute to a robust disaster recovery plan for your Redshift clusters. Cross-region snapshots eliminate the need to self-manage the replication of snapshots in a secondary region.

For further information about AWS Redshift Cross-Region Snapshots refer to the AWS Redshift documentation.

Rationale

Enable Amazon Redshift Cross-Region Snapshots to provide a redundant source of snapshots and increase the availability of your backups.

Applies To

  • Databases

Tags

This rule is applied when the following tags are present:

Tag With Value
secureclouddb/provider aws
secureclouddb/service redshift

Default Rule

const { isAwsRedshift } = aws

/**
 * @param {Object} databaseSettings - database settings object
 * @returns {boolean} true if cross-region snapshots is enabled
 */
function validate(databaseSettings) {
    const success = isAwsRedshift(databaseSettings) &&
                    databaseSettings.awsDatabaseInstance.redshiftCluster.clusterSnapshotCopyStatus &&
                    !!databaseSettings.awsDatabaseInstance.redshiftCluster.clusterSnapshotCopyStatus.destinationRegion

    return {
        success,
    }
}

// invoke
validate(databaseSettings);