aws-nuke icon indicating copy to clipboard operation
aws-nuke copied to clipboard

Remove Termination Protection for ELB before deleting

Open root360-AndreasUlm opened this issue 5 years ago • 3 comments

Hi,

we used aws-nuke to cleanup an account and encountered a deletion problem. When an LB has an active termination protection it cannot be removed by nuke: eu-central-1 - ELBv2 - <name> - OperationNotPermitted: Load balancer 'arn:aws:elasticloadbalancing:eu-central-1:<accountid>:loadbalancer/app/<name>/<id>' cannot be deleted because deletion protection is enabled

IMHO nuke should remove the termination protection first and then issue the deletion request.

Is there a reason why nuke does not resolve this dependency?

Regards, Andreas

root360-AndreasUlm avatar Sep 03 '18 15:09 root360-AndreasUlm

This is more or less, because we only add resources on demand. The reason for this is, that AWS has a lot of resources and a lot of them need special treatment (like ALBs in this example).

We will add this soon.

svenwltr avatar Sep 04 '18 08:09 svenwltr

Hello any update on this issue ?

phivid avatar Mar 26 '22 08:03 phivid

May I know if we can have this feature?

DawnElixir avatar May 07 '24 11:05 DawnElixir