Skip to content

FailoverDBCluster

Source: src/AWS/RDS/FailoverDBCluster.ts

Runtime binding for the FailoverDBCluster operation (IAM action rds:FailoverDBCluster).

Forces a failover of the bound DBCluster — promotes a reader to writer, e.g. for chaos testing or AZ evacuation. The cluster identifier is injected from the binding. Provide the implementation with Effect.provide(AWS.RDS.FailoverDBClusterHttp).

// init — bind the operation to the cluster
const failoverDBCluster = yield* AWS.RDS.FailoverDBCluster(cluster);
// runtime
yield* failoverDBCluster();