Skip to content

Commit

Permalink
rm: unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ghannay10 committed Apr 17, 2024
1 parent dea60b0 commit 22e2f79
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions infrastructure/data.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
locals {
record_prefix = var.env == "prod" ? var.project_name : "${var.project_name}-${var.env}"
host = terraform.workspace == "prod" ? "${var.project_name}.ai.cabinetoffice.gov.uk" : "${var.project_name}-${terraform.workspace}.ai.cabinetoffice.gov.uk"

project_name_truncated = substr(var.project_name, 0, 5)
tg_name = length("${var.prefix}-${var.project_name}-${terraform.workspace}-target") < 32 ? "${var.prefix}-${var.project_name}-${terraform.workspace}-tg" : "${var.prefix}-${local.project_name_truncated}-${terraform.workspace}-tg"

health_check = {
healthy_threshold = 3
unhealthy_threshold = 3
accepted_response = "200"
path = "/"
timeout = 6
port = 8000
}
}

data "terraform_remote_state" "vpc" {
Expand Down

0 comments on commit 22e2f79

Please sign in to comment.