Closed lonegunmanb closed 1 year ago
In this plugin we've restricted the server's version to:
enum: []string{ "14", "13", "12", "11", },
In the document we described:
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/2022-12-01/FlexibleServers.json
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/2022-12-01/FlexibleServers.json
But the API referenced is about Postgres Flexible Server, which has corresponding resource: azurerm_postgresql_flexible_server.
azurerm_postgresql_flexible_server
azurerm_postgresql_server's version restriction in API spec is here, it should be:
azurerm_postgresql_server
"enum": [ "9.5", "9.6", "10", "10.0", "10.2", "11" ],
We can verify the API version that AzureRM provider is using now here.
This resource should check azurerm_postgresql_flexible_server instead.
Fixed by https://github.com/terraform-linters/tflint-ruleset-azurerm/pull/252
In this plugin we've restricted the server's version to:
In the document we described:
But the API referenced is about Postgres Flexible Server, which has corresponding resource:
azurerm_postgresql_flexible_server
.azurerm_postgresql_server
's version restriction in API spec is here, it should be:We can verify the API version that AzureRM provider is using now here.
This resource should check
azurerm_postgresql_flexible_server
instead.