Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion terraform/locals.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
locals {
resource_suffix = [lower(var.environment), substr(lower(var.location), 0, 2), substr(lower(var.application), 0, 3), lower(var.owner), random_id.resource_group_name_suffix.hex, var.resource_group_name_suffix]
generated_suffix = coalesce(var.cohort_suffix, random_id.resource_group_name_suffix.hex)
resource_suffix = [lower(var.environment), substr(lower(var.location), 0, 2), substr(lower(var.application), 0, 3), lower(var.owner), local.generated_suffix, var.resource_group_name_suffix]
resource_suffix_kebabcase = join("-", local.resource_suffix)
resource_suffix_lowercase = join("", local.resource_suffix)

Expand All @@ -15,6 +16,7 @@ locals {
"Scm" = var.scm,
"Application" = var.application
"Resource Suffix" = var.resource_group_name_suffix
"Cohort Suffix" = local.generated_suffix
}
)
)
Expand Down
4 changes: 2 additions & 2 deletions terraform/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ terraform {
}
}

backend "local" {}
# backend "azurerm" {}
# backend "local" {}
backend "azurerm" {}
}

provider "azurerm" {
Expand Down
8 changes: 7 additions & 1 deletion terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ variable "user_id" {
description = "The user id to assign the Contributor role to the resource group"
type = string
default = ""
}
}

variable "cohort_suffix" {
description = "[Optional] A cohort suffix for a specific lab to be edited. Helps with keeping track of labs' cohorts in the same subscription"
type = string
default = ""
}