diff --git a/variables.tf b/variables.tf index ad8823da..6f25aa61 100644 --- a/variables.tf +++ b/variables.tf @@ -256,7 +256,7 @@ EOT error_message = "Either one of `existing_gw` or `new_gw` must be set once `var.application_gateway_for_ingress` is not `null`." } validation { - condition = !try(var.application_gateway_for_ingress.new_gw.create_role_assignments, false) || try(var.application_gateway_for_ingress.new_gw.subnet_id != null, true) + condition = !try(var.application_gateway_for_ingress.new_gw.create_role_assignments, false) || try(var.application_gateway_for_ingress.new_gw.subnet_id != null, true) error_message = "`var.application_gateway_for_ingress.new_gw.subnet_id` must be set when `var.application_gateway_for_ingress.new_gw.create_role_assignments` is `true`." } }