Skip to content

Commit

Permalink
add infrastructure to environment
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 23, 2026
1 parent b5e31de commit 1d8c7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base-label/base.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "terraform_data" "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", "infrastructure"], 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
2 changes: 1 addition & 1 deletion base-label/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ variable "environment" {
default = null

validation {
condition = contains(["dev", "test", "qa", "uat", "ite", "stage", "prod", "cre", "sa", "services", "common"], var.environment) || var.environment == null
condition = contains(["dev", "test", "qa", "uat", "ite", "stage", "prod", "cre", "sa", "services", "common", "infrastructure"], var.environment) || var.environment == null
error_message = "The var.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 1d8c7db

Please sign in to comment.