Amazon DocumentDB · Arazzo Workflow
Amazon DocumentDB Decommission Cluster with Final Snapshot
Version 1.0.0
Verify a cluster exists, delete it with a final snapshot, then poll until it is gone.
View Spec
View on GitHub
Amazon Web ServicesDatabaseDocument DatabaseDocumentDBManaged DatabaseMongoDBNoSQLArazzoWorkflows
Provider
Workflows
decommission-cluster-with-final-snapshot
Delete a cluster with a final snapshot and confirm removal.
Confirms the cluster exists, deletes it with SkipFinalSnapshot set to false and a final snapshot identifier, then polls until the describe call reports the cluster is no longer present.
1
confirmCluster
describeDBClusters
Confirm the cluster exists and capture its current status before deleting.
2
deleteCluster
deleteDBCluster
Delete the cluster, requesting a final snapshot by setting SkipFinalSnapshot to false and providing a final snapshot identifier.
3
pollUntilGone
describeDBClusters
Describe the cluster repeatedly. While it is still returned and reports a deleting status, loop back here; when the describe call returns 404 the cluster has been fully removed.