Skip to content

Instantly share code, notes, and snippets.

@woutercouvaras
woutercouvaras / delete-clusters-and-services.sh
Last active February 22, 2024 12:55
Script to delete ecs tasks, clusters and services
#!/usr/bin/env bash
# inspired by:
# https://gist.github.com/jen20/e1c25426cc0a4a9b53cbb3560a3f02d1
get_cluster_arns() {
aws ecs list-clusters --region sa-east-1 \
--output json \
| jq -M -r '.clusterArns | .[]'
}