You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ │ var.custom_landing_zones is object with 1 attribute "com.mycompany"
│
│ The custom_landing_zones keys must be between 2 to 89 characters long and can only contain lowercase letters, numbers and hyphens.
│
│ This was checked by the validation rule at .terraform/modules/enterprise_scale/variables.tf:605,3-13.
error_message="The custom_landing_zones keys must be between 2 to 89 characters long and can only contain lowercase letters, numbers and hyphens."
...to:
condition=can([forkinkeys(var.custom_landing_zones) :regex("^[a-zA-Z0-9-.]{2,89}$", k)]) ||length(keys(var.custom_landing_zones)) ==0error_message="The custom_landing_zones keys must be between 2 to 89 characters long and can only contain lowercase letters, numbers, periods and hyphens."
Screenshots
Additional context
I'm still creating the environment where this issue has hit me. So I'm not sure, if there are side effects with Management Groups containing a period in the ID. So far I have not observed any problems.
I would also like to point out that I don't think it's a good idea. I follow customer specifications here and see no technical reason not to allow it.
The text was updated successfully, but these errors were encountered:
Didn't have the chance to test all components. Just using this for Policy deployments tbh.
I'll let you know, if I see issues with those Management Groups.
Community Note
Versions
terraform: 1.6.3
azure provider: 1.10.0
module: 5.0.0
Description
Describe the bug
When I try to add a management group with a period in the ID, it fails the validation.
Periods are allowed for Management Group IDs.
Steps to Reproduce
terraform plan
Possible fix:
I've changed the validation rule in
terraform-azurerm-caf-enterprise-scale/variables.tf
Lines 606 to 607 in ecf0601
...to:
Screenshots
Additional context
I'm still creating the environment where this issue has hit me. So I'm not sure, if there are side effects with Management Groups containing a period in the ID. So far I have not observed any problems.
I would also like to point out that I don't think it's a good idea. I follow customer specifications here and see no technical reason not to allow it.
The text was updated successfully, but these errors were encountered: