Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 17, 2026
1 parent d2b56fb commit c136ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base-label/base.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ locals {

resource "terraform_data" "base_environment" {
count = length(local.base.environment) > 0 ? 1 : 0
input = tolist(local.base.environment)
input = local.base.environment

lifecycle {
precondition {
condition = contains(["dev", "test", "qa", "uat", "ite", "stage", "prod", "cre", "sa", "services", "common"], local.base.environment) || local.base.environment == null
condition = contains(["dev", "test", "qa", "uat", "ite", "stage", "prod", "cre", "sa", "services", "common"], [local.base.environment]) || local.base.environment == null
error_message = "The var.environment or base.environment value invalid. See https://github.e.it.census.gov/terraform/cloud-information/tree/master/aws/documentation/naming-tagging-standard for valid list."
}
}
Expand Down

0 comments on commit c136ca9

Please sign in to comment.