Skip to content

Commit

Permalink
use startswith instead to include engineer environments
Browse files Browse the repository at this point in the history
  • Loading branch information
SammySteiner committed Jan 17, 2024
1 parent 409cac4 commit eb7f30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/modules/service/load-balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "aws_lb" "alb" {
security_groups = [aws_security_group.alb.id]
subnets = var.public_subnet_ids

enable_deletion_protection = terraform.workspace == "default"
enable_deletion_protection = !startswith(terraform.workspace, "t-")

# TODO(https://github.com/navapbc/template-infra/issues/163) Implement HTTPS
# checkov:skip=CKV2_AWS_20:Redirect HTTP to HTTPS as part of implementing HTTPS support
Expand Down

0 comments on commit eb7f30a

Please sign in to comment.