Skip to content
GitHubXDiscordRSS

Cluster

Learn how to create, update, and manage AWS Route53RecoveryControl Clusters using Alchemy Cloud Control.

The Cluster resource lets you manage AWS Route53RecoveryControl Clusters for routing traffic and controlling failover in your applications.

Create a basic Route53RecoveryControl Cluster with essential properties and a tag.

import AWS from "alchemy/aws/control";
const route53Cluster = await AWS.Route53RecoveryControl.Cluster("basic-cluster", {
name: "PrimaryCluster",
networkType: "CLOUD",
tags: [{ key: "Environment", value: "Production" }]
});

Configure a cluster with additional properties like adopting existing resources.

const advancedCluster = await AWS.Route53RecoveryControl.Cluster("advanced-cluster", {
name: "SecondaryCluster",
networkType: "CLOUD",
adopt: true,
tags: [
{ key: "Environment", value: "Staging" },
{ key: "Owner", value: "DevTeam" }
]
});

Create a cluster and access its additional properties after creation.

const detailedCluster = await AWS.Route53RecoveryControl.Cluster("detailed-cluster", {
name: "DetailedCluster",
networkType: "CLOUD"
});
// Accessing the ARN and Creation time of the cluster
console.log(`Cluster ARN: ${detailedCluster.arn}`);
console.log(`Cluster Created At: ${detailedCluster.creationTime}`);