Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.26 KB

azurerm_postgresql_server_invalid_version.md

File metadata and controls

48 lines (31 loc) · 1.26 KB

azurerm_postgresql_server_invalid_version

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

Allowed values are:

  • 9.5
  • 9.6
  • 10
  • 10.0
  • 10.2
  • 11

Example

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

Error: "..." is an invalid value as version (azurerm_postgresql_server_invalid_version)

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

Reference: https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.1.0/docs/rules/azurerm_postgresql_server_invalid_version.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/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json