RecoveryGroup
The RecoveryGroup resource allows you to manage AWS Route53RecoveryReadiness RecoveryGroups for improving the recovery readiness of your applications.
Minimal Example
Section titled “Minimal Example”Create a basic RecoveryGroup with a specified name and a single cell.
import AWS from "alchemy/aws/control";
const recoveryGroup = await AWS.Route53RecoveryReadiness.RecoveryGroup("myRecoveryGroup", { RecoveryGroupName: "MyRecoveryGroup", Cells: ["cell-1"],});
Advanced Configuration
Section titled “Advanced Configuration”Configure a RecoveryGroup with tags for resource management and multiple cells.
const advancedRecoveryGroup = await AWS.Route53RecoveryReadiness.RecoveryGroup("advancedRecoveryGroup", { RecoveryGroupName: "AdvancedRecoveryGroup", Cells: ["cell-1", "cell-2", "cell-3"], Tags: [ { Key: "Environment", Value: "Production" }, { Key: "Owner", Value: "TeamA" } ],});
Adopting Existing Resources
Section titled “Adopting Existing Resources”If you want to adopt an existing RecoveryGroup instead of failing if it already exists, you can set the adopt
property to true.
const adoptedRecoveryGroup = await AWS.Route53RecoveryReadiness.RecoveryGroup("adoptedRecoveryGroup", { RecoveryGroupName: "AdoptedRecoveryGroup", Cells: ["cell-1"], adopt: true,});
Creating Multiple RecoveryGroups
Section titled “Creating Multiple RecoveryGroups”Manage multiple RecoveryGroups for different environments efficiently.
const devRecoveryGroup = await AWS.Route53RecoveryReadiness.RecoveryGroup("devRecoveryGroup", { RecoveryGroupName: "DevRecoveryGroup", Cells: ["cell-dev-1", "cell-dev-2"],});
const prodRecoveryGroup = await AWS.Route53RecoveryReadiness.RecoveryGroup("prodRecoveryGroup", { RecoveryGroupName: "ProdRecoveryGroup", Cells: ["cell-prod-1", "cell-prod-2"], Tags: [ { Key: "Environment", Value: "Production" } ],});