Skip to main content
Knowledge Base

ecs-cluster service catalog ebs volume delete on

Answer

How can I get ecs cluster service catalog modules to allow EBS volumes to delete on termination? Racking up huge bills every time a pipeline runs in dev and hoping to have dev instances default to EBS volume destroying on detach. This is available as a variable on the ecs-cluster module itself: https://github.com/gruntwork-io/terraform-aws-ecs/blob/7c6fbc9731903ce175703608ac8d429c01201604/modules/ecs-cluster/main.tf#L135 It, however, does not appear to be available on the service catalog wrapper for the module. Can we please expose this? Is there a way to pass these sort of custom variables along to the ecs-cluster? I am thinking no, and that it needs to be exposed as a variable. --- <ins datetime="2024-01-20T19:44:13Z"> <p><a href="https://support.gruntwork.io/hc/requests/110709">Tracked in ticket #110709</a></p> </ins>

@swbmindcycle the EBS delete on terminate for the ecs-cluster service can now be toggled using the var `cluster_instance_ebs_delete_on_termination` in version [v0.108.3](https://github.com/gruntwork-io/terraform-aws-service-catalog/releases/tag/v0.108.3). Please test this out at your convenience.