Skip to content

Commit

Permalink
Merge pull request #100 from awslabs/issue99
Browse files Browse the repository at this point in the history
Fixed issue99
  • Loading branch information
tmcallaghan committed Mar 20, 2024
2 parents f621c43 + db3314e commit 2e42757
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ def delete_global_cluster(global_cluster_id, secondary_cluster_arn, secondary_cl
if each_secondary_cluster != secondary_cluster_arn:
print('Removing secondary cluster ', each_secondary_cluster, ' from global cluster ', global_cluster_id)
remove_from_global_cluster(each_secondary_cluster, global_cluster_id)
# Wait until all standalone clusters are promoted
print('Waiting till all secondary clusters are removed from global cluster ', global_cluster_id)
wait_for_promotion_to_complete(global_cluster_id, secondary_cluster_arn)
# Wait until all clusters in the global cluster are promoted to standalone clusters
# and removed from global cluster
print('Waiting till all secondary clusters are removed from global cluster ', global_cluster_id)
wait_for_promotion_to_complete(global_cluster_id, each_secondary_cluster)

# Delete secondary clusters
print('All secondary clusters are promoted to standalone cluster. Begin deleting each cluster.')
Expand Down

0 comments on commit 2e42757

Please sign in to comment.