Closed Netyyyy closed 12 months ago
terraform init
failed with :
seems all variables.tf files have the same problem.Hi all, Any updates for those?
- when I run
terraform plan -out my.plan --var-file ../parameters.tfvars
from https://github.com/Azure/azure-spring-apps-landing-zone-accelerator/blob/main/Scenarios/ASA-Secure-Baseline/Terraform/07-LZ-AppGateway.md failed with:
Hello @Netyyyy
When deploying the 07-LZ-AppGateway you must provide a certificate in PFX format and comfigure the parameters.tfvars "07 Application Gateway" section appropriately for your certificate and backend pool information.
The particular error you're seeing here is about "certfilename" variable not being populated in the parameters.tfvars file. This value is commented out be default as the AppGateway is an optional component.
Hope that helps.
- when run
terraform init
failed with : seems all variables.tf files have the same problem.
Hello @Netyyyy,
The error you are seeing here is related to the "name_prefix" variable, we restrict this variables length to 10 characters to control the size of resource names that are created using this variable.
Can you check the value that is set in the "parameters.tfvars" file and make sure it's less than or equal to 10 characters in length? Here I've set mine to "springent".
- when run
terraform init
failed with : seems all variables.tf files have the same problem.Hello @Netyyyy Muyao Feng (CSI Interfusion Inc) Vendor,
The error you are seeing here is related to the "name_prefix" variable, we restrict this variables length to 10 characters to control the size of resource names that are created using this variable.
Can you check the value that is set in the "parameters.tfvars" file and make sure it's less than or equal to 10 characters in length? Here I've set mine to "springent".
I didn't change name_prefix
,
and I modified error_message
to start with a capital letter , it fixed
Hi @Netyyyy, is it ok to close this issue? Sounds like you got past the challenges, let us know! Thank you.
terraform plan -out my.plan --var-file ../parameters.tfvars
from https://github.com/Azure/azure-spring-apps-landing-zone-accelerator/blob/main/Scenarios/ASA-Secure-Baseline/Terraform/07-LZ-AppGateway.md failed with: