Amazon Elastic Container Service (ECS) is a fully-managed container orchestration service that makes it easy to run, stop, and manage Docker containers on a cluster. Fortunately, there is an easy way to clean up these inactive task definitions in all AWS regions using a simple Python script and the boto3 library. In this tutorial, we will walk through the steps to clean up inactive task definitions in the ECS service in all AWS regions.

# https://github.com/dannysteenman/aws-toolbox # # License: MIT # # This script deletes all inactive task definitions in the ECS service in all AWS Regions.

No access to region: eu-central-2 No inactive task definitions found in region eu-north-1 No access to region: eu-south-1 No access to region: eu-south-2 No inactive task definitions found in region eu-west-1 No inactive task definitions found in region eu-west-2 No inactive task definitions found in region eu-west-3 No access to region: me-central-1 No access to region: me-south-1 No inactive task definitions found in region sa-east-1 No inactive task definitions found in region us-east-1 No inactive task definitions found in region us-east-2 No inactive task definitions found in region us-west-1 No inactive task definitions found in region us-west-2

Related Articles