Skip to content

Commit

Permalink
Enable Load Balancer deletion protection if the environment is non-ep…
Browse files Browse the repository at this point in the history
…hemeral
  • Loading branch information
malessi committed Feb 11, 2025
1 parent 26bb23b commit 9987d6f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ops/terraform/services/server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,11 @@ module "fhir_asg" {
}

lb_config = {
name = "bfd-${local.env}-${local.legacy_service}-nlb"
internal = !local.lb_is_public
load_balancer_type = "network"
ip_address_type = "ipv4"
name = "bfd-${local.env}-${local.legacy_service}-nlb"
internal = !local.lb_is_public
load_balancer_type = "network"
ip_address_type = "ipv4"
enable_deletion_protection = !local.is_ephemeral_env
load_balancer_security_group_config = {
egress = {
description = "To VPC instances"
Expand Down

0 comments on commit 9987d6f

Please sign in to comment.