Skip to content

Instantly share code, notes, and snippets.

View Razzendah's full-sized avatar
💭
Learning

Razzendah Razzendah

💭
Learning
View GitHub Profile
@Razzendah
Razzendah / deregister-task-definitions.sh
Created April 29, 2022 16:30 — forked from jen20/deregister-task-definitions.sh
Script to deregister all ECS Task Definitions in a given region
#!/usr/bin/env bash
get_task_definition_arns() {
aws ecs list-task-definitions --region ${AWS_REGION} \
| jq -M -r '.taskDefinitionArns | .[]'
}
delete_task_definition() {
local arn=$1