Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ecs task remove

#!/usr/bin/env bash

get_task_definition_arns() {
    aws ecs list-task-definitions --region <region> --family-prefix <task-definition> 
        | jq -M -r '.taskDefinitionArns | .[]'
}

delete_task_definition() {
    local arn=$1

    aws ecs deregister-task-definition 
        --region <region> 
        --task-definition "${arn}" > /dev/null
}

for arn in $(get_task_definition_arns)
do
    echo "Deregistering ${arn}..."
    delete_task_definition "${arn}"
done
Comment

PREVIOUS NEXT
Code Example
Shell :: How to check if your unix computer is 32-bit or 64-bit 
Shell :: How to create or generate secret key for django using UUID 
Shell :: network error when calling api 
Shell :: How to create a gpt partition table with fdisk 
Shell :: Remove all local GitHub users 
Shell :: Update VS Code from Microsoft Repository 
Shell :: redwood authentication 
Shell :: how make unbuntu use llvm-13 
Shell :: use bash path variable in vim 
Shell :: exec format error Heroku dockerfile 
Shell :: ubuntu fresh install deps 
Shell :: wsl how to mount make usb accessible 
Shell :: /bin/bash^m: bad interpreter: text file busy 
Shell :: composer command to install vendor in magento 2 
Shell :: remove a complete directory 
Shell :: Do The Right eXtraction 
Shell :: cmd create fgile 
Shell :: node-red-contrib-influxdb 
Shell :: install heroku cli plugin - heroku-release-retry 
Shell :: flask shell context processor 
Shell :: go back to a folder in git 
Shell :: open app in background linux 
Shell :: Authentication required. System policy prevents WiFi scans 
Shell :: -s https://raw.githubusercontent.com/nathanchance/chromeos-adb-fastboot/master/install.sh | bash 
Shell :: Guardar cambios en una rama nueva 
Shell :: set up monitor refresh rate from command line fedora 
Shell :: drop-in 
Shell :: dgvai/laravel-adminlte-components 
Shell :: how to run packages installed locally 
Shell :: ????author signature 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =