Amazon Web Services (AWS) Elastic Container Service (ECS) - Delete Cluster using the AWS CLI
by
Jeremy Canfield |
Updated: October 23 2023
| Amazon Web Services (AWS) Elastic Container Service (ECS) articles
This assumes you have already configured the aws command line tool. If not, check out my article on Getting Started with the AWS CLI.
The aws ecs list-clusters command can be used to list your Elastic Container Service (ECS) Clusters.
~]$ aws ecs list-clusters
{
"clusterArns": [
"arn:aws:ecs:us-east-1:123456789012:cluster/my-ecs-cluster"
]
}
And then the aws ecs delete-cluster command can be used to delete a cluster, using the Amazon Resource Number (ARN) of the cluster.
aws ecs delete-cluster --cluster arn:aws:ecs:us-east-1:123456789012:cluster/my-ecs-cluster
Did you find this article helpful?
If so, consider buying me a coffee over at