Ensure load balancer has deletion protection enabled

Error: Deletion protection disabled for load balancer

Bridgecrew Policy ID: BC_AWS_GENERAL_61
Checkov Check ID: CKV_AWS_150
Severity: MEDIUM

Deletion protection disabled for load balancer

Description

Check if Load Balancer Has Deletion Protection Enabled

Fix - Buildtime

Terraform

  • Resource: aws_lb
  • Argument: enable_deletion_protection
resource "aws_lb" "test_success" {
  ...
+ enable_deletion_protection = true
}

Did this page help you?