Skip to content

Commit

Permalink
add subdirectory.versions
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 2, 2023
1 parent 87366d1 commit 0ad049b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions examples/full-setup-tf-upgrade/subdirectory.versions.tf.off
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# if the VPC directory has been converted to TF 1.x (you'll note a file vpc/REGION/vpcN/versin.tf which says required version > 1.0
# you will need to enable the variable valition experiment in TF 0.12. If your current directory is 0.13 or greater, do
# NOT include this file, as the exeriment start in 0.12.20 and ended in 0.13.0. See:
#
# * https://github.com/hashicorp/terraform/blob/v0.12/CHANGELOG.md
# * https://github.com/hashicorp/terraform/blob/v0.13/CHANGELOG.md
#
# add this file to $(git root)/includes.d/subdirectory.versions.tf
# link it with this statemtn in tf-run.data
# LINKTOP includes.d/subdirectory.versions.tf

# only >= 0.12.20 and < 0.13
terraform {
experiments = [variable_validation]
}
2 changes: 1 addition & 1 deletion examples/full-setup-tf-upgrade/variables.vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ variable "tgw_environment" {

validation {
condition = var.tgw_environment == null || contains(["services", "dev", "test", "stage", "prod", "cre"], var.tgw_environment)
error_message = "The tgw_environment must contain one of the legal values: services, dev, test, stage, prod, cre"
error_message = "The tgw_environment must contain one of the legal values: services, dev, test, stage, prod, cre."
}
}

Expand Down

0 comments on commit 0ad049b

Please sign in to comment.