Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.28 KB

azurerm_search_service_invalid_partition_count.md

File metadata and controls

42 lines (25 loc) · 1.28 KB

azurerm_search_service_invalid_partition_count

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

The rule requires the value to be in the range 1 <= x <= 12.

Example

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

Error: partition_count must be 12 or less (azurerm_search_service_invalid_partition_count)

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

Reference: https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.1.0/docs/rules/azurerm_search_service_invalid_partition_count.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/search/resource-manager/Microsoft.Search/stable/2023-11-01/search.json