Skip to content

Commit

Permalink
fix: custom lz regex #855 (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF committed Nov 10, 2023
1 parent ecf0601 commit 0d90dc6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .tfdocs-config.yml → .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### To generate the output file to partially incorporate in the README.md,
### Execute this command in the Terraform module's code folder:
# terraform-docs -c .tfdocs-config.yml .
# terraform-docs -c .terraform-docs.yml .

formatter: "markdown document" # this is required

Expand All @@ -18,7 +18,7 @@ sections:
show: []

hide-all: false # deprecated in v0.13.0, removed in v0.15.0
show-all: true # deprecated in v0.13.0, removed in v0.15.0
show-all: true # deprecated in v0.13.0, removed in v0.15.0

content: |-
{{ .Header }}
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,7 @@ opa-update-git:
@echo "==> Running script..."
./tests/scripts/opa-update-git.sh

.PHONY: azp-strategy azp-backend azp-spn-generator tf-install tf-prepare tf-fmt tf-init tf-plan tf-apply tf-destroy terratest opa-install opa-run-tests opa-update-values opa-update-git
docs:
terraform-docs .

.PHONY: azp-strategy azp-backend azp-spn-generator docs tf-install tf-prepare tf-fmt tf-init tf-plan tf-apply tf-destroy terratest opa-install opa-run-tests opa-update-values opa-update-git
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,8 @@ DESCRIPTION
default = {}

validation {
condition = can([for k in keys(var.custom_landing_zones) : regex("^[a-zA-Z0-9-]{2,89}$", k)]) || length(keys(var.custom_landing_zones)) == 0
error_message = "The custom_landing_zones keys must be between 2 to 89 characters long and can only contain lowercase letters, numbers and hyphens."
condition = can([for k in keys(var.custom_landing_zones) : regex("^[a-zA-Z0-9-.]{2,89}$", k)]) || length(keys(var.custom_landing_zones)) == 0
error_message = "The custom_landing_zones keys must be between 2 to 89 characters long and can only contain lowercase letters, numbers, periods, and hyphens."
}
}

Expand Down

0 comments on commit 0d90dc6

Please sign in to comment.