# How to prevent accidental load balancer deletions

DevFeed: [How to prevent accidental load balancer deletions](<https://devfeed.tech/articles/how-to-prevent-accidental-load-balancer-deletions-11628.md>)

Original publisher: [Read original article](<https://www.gremlin.com/blog/how-to-prevent-accidental-aws-elb-load-balancer-deletions>)

Author: Andre Newman

Published: 2024-07-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [Gremlin Blog](<https://devfeed.tech/sources/gremlin-blog.md>)

Topics: [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Infrastructure as code](<https://devfeed.tech/topics/infrastructure-as-code.md>), [AWS CloudFormation](<https://devfeed.tech/topics/aws-cloudformation.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloudformation](<https://devfeed.tech/tags/cloudformation.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [iac](<https://devfeed.tech/tags/iac.md>), [load-balancer](<https://devfeed.tech/tags/load-balancer.md>), [reliability-management](<https://devfeed.tech/tags/reliability-management.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

## AI overview

This tutorial explains how to prevent accidental deletion of AWS Elastic Load Balancers by enabling their deletion protection attribute. It describes how the protection works across the AWS Console, AWS SDK, CloudFormation, and Terraform, and why it helps reduce outage risk caused by manual mistakes or infrastructure-as-code changes.

## Source excerpt

Accidentally deleting cloud resources happens more often than you'd think. Learn how to enable deletion protection for your AWS Elastic Load Balancers (ELBs) and lower your risk of service outages.