aztfmod / terraform-provider-azurecaf

Terraform provider for the Terraform platform engineering for Azure
173 stars 92 forks source link

azurerm_frontdoor_firewall_policy contains invalid chars #107

Closed Mechanolatry closed 3 years ago

Mechanolatry commented 3 years ago

Issue:

The azurerm_frontdoor_firewall_policy includes the separator when the naming restriction requires only letters and numbers

Resource Block:

resource "azurecaf_name" "azurerm_frontdoor_firewall_policy_default" {
  name          = "default"
  resource_type = "azurerm_frontdoor_firewall_policy"
}

Output:

azurecaf_name.azurerm_frontdoor_firewall_policy_default
{
  "clean_input" = true
  "id" = "lrbjfdnpgqjomhbm"
  "name" = "default"
  "passthrough" = false
  "prefixes" = tolist(null) /* of string */
  "random_length" = 0
  "random_seed" = tonumber(null)
  "resource_type" = "azurerm_frontdoor_firewall_policy"
  "resource_types" = tolist(null) /* of string */
  "result" = "fdfw-default"
  "results" = tomap({})
  "separator" = "-"
  "suffixes" = tolist(null) /* of string */
  "use_slug" = true
}

Error:

Error: "name" did not match regex "(^[a-zA-Z])([\\da-zA-Z]{0,127})$"
Error: "name" must be between 1 and 128 characters in length, must begin with a letter and may only contain letters and numbers.