Skip to content

Commit 0d90dc6

Browse files
authored
fix: custom lz regex #855 (#857)
1 parent ecf0601 commit 0d90dc6

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### To generate the output file to partially incorporate in the README.md,
22
### Execute this command in the Terraform module's code folder:
3-
# terraform-docs -c .tfdocs-config.yml .
3+
# terraform-docs -c .terraform-docs.yml .
44

55
formatter: "markdown document" # this is required
66

@@ -18,7 +18,7 @@ sections:
1818
show: []
1919

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

2323
content: |-
2424
{{ .Header }}

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,7 @@ opa-update-git:
7272
@echo "==> Running script..."
7373
./tests/scripts/opa-update-git.sh
7474

75-
.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
75+
docs:
76+
terraform-docs .
77+
78+
.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

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,8 @@ DESCRIPTION
603603
default = {}
604604

605605
validation {
606-
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
607-
error_message = "The custom_landing_zones keys must be between 2 to 89 characters long and can only contain lowercase letters, numbers and hyphens."
606+
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
607+
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."
608608
}
609609
}
610610

0 commit comments

Comments
 (0)