-
Notifications
You must be signed in to change notification settings - Fork 330
ECS deployment destroys not deleting target groups #4745
Comments
this is happening for me too I'm wondering if there is a way to disable pruning old deployments on |
My team and I bumped into this as well. We wrote custom hooks to check and perform any additional pruning.
@bchewy there is a flag for that: https://developer.hashicorp.com/waypoint/commands/deploy#prune |
Thanks for sharing! |
Hey @senortroll (and others) thanks for reporting this - it looks like we have a PR that should address this (#4742), we'll work to get that merged in |
4742 was just merged so hopefully we'll get this out in a point release soon! |
This will be released with v0.11.2! |
Describe the bug
When deleting deployments, either manually or as release pruning, I get this error:
Steps to Reproduce
run a
waypoint deployment delete
with an ECS deploymentExpected behavior
This should delete the unused target groups, along with all the other resources.
Waypoint Platform Versions
Additional context
I think this has to do with this PR merged in 0.11.1: #4497
Specifically line 1352:
If I'm reading that correctly, it will (and does) return an error if there is 1 target group... I think that should be a
len(groups.TargetGroups) != 1
The text was updated successfully, but these errors were encountered: