Reputation: 146
I have 2 ECS clusters in one aws account and planning to shut down 1 of the clusters, the services inside that cluster as well as stop/terminate the ec2 instances in the auto-scaling group. Is there a proper way to achieve this without leaving any traces? I have thought about the following:
Any help is appreciated
Upvotes: 0
Views: 1034
Reputation: 44
Assuming you are using AWS Cloudformation to setup the ecs cluster, you can delete the cloudformation stack, that will remove all the resources with respect to that CF stack.
Else, see if this helps - deleting via console : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/delete_cluster.html
Upvotes: 1
Reputation: 2784
Whenever you delete ECS cluster it will delete auto-scalling configuration, which also delete instances managed by autoscalling.
Upvotes: 1