Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.27 KB

azurerm_iothub_route_invalid_name.md

File metadata and controls

42 lines (25 loc) · 1.27 KB

azurerm_iothub_route_invalid_name

Warns about values that appear to be invalid based on azure-rest-api-specs.

In this rule, the string must match the regular expression `^[A-Za-z0-9-._]{1,64}$``.

Example

resource "azurerm_iothub_route" "foo" {
  name = ... // invalid value
}
$ tflint
1 issue(s) found:

Error: "..." does not match valid pattern ^[A-Za-z0-9-._]{1,64}$ (azurerm_iothub_route_invalid_name)

  on template.tf line 2:
  2:   name = ... // invalid value

Reference: https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.1.0/docs/rules/azurerm_iothub_route_invalid_name.md

Why

Requests containing invalid values will return an error when calling the API by terraform apply.

How to Fix

Replace the warned value with a valid value.

Source

This rule is automatically generated from azure-rest-api-specs. If you are uncertain about the warning, check the following API schema referenced by this rule.

https://github.com/Azure/azure-rest-api-specs/tree/master/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-04-30-preview/iothub.json