terraform-linters / tflint

A Pluggable Terraform Linter
Mozilla Public License 2.0
4.96k stars 357 forks source link

azurerm_mysql_server gives error on version number #1392

Closed stumueller closed 2 years ago

stumueller commented 2 years ago
plugin "azurerm" {
    enabled = true
    version = "0.16.0"
    source = "github.com/terraform-linters/tflint-ruleset-azurerm"
}

TFLint version 0.36.2 Terraform v1.2.0

for azurerm_mysql_server specifying version = "8.0" fails the linter as it is expecting 8.0.21 However changing the terraform to version = "8.0.21" fails the deployment as terraform is expecting 8.0

PatMyron commented 2 years ago

https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/5ee511a69ae38ff92dbef591c1e0b78a2d1d5015/rules/apispec/azurerm_mysql_server_invalid_version.go#L29

tracking in https://github.com/terraform-linters/tflint-ruleset-azurerm/issues/171

wata727 commented 2 years ago

Duplicate of https://github.com/terraform-linters/tflint-ruleset-azurerm/issues/171