Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_kubernetes_cluster_default_node_pool_invalid_vm_size uses outdated list for VM's #192

Closed
fheinonen opened this issue Aug 29, 2022 · 1 comment · Fixed by #201
Closed

Comments

@fheinonen
Copy link

tflint fails to validate kubernetes cluster with the following error, when validating HCL. It seems that it is using a list that is not maintained
Error: "Standard_D8s_v4" is an invalid value as vm_size (azurerm_kubernetes_cluster_default_node_pool_invalid_vm_size)

https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.17.1/docs/rules/azurerm_kubernetes_cluster_default_node_pool_invalid_vm_size.md
https://github.com/Azure/azure-rest-api-specs/blob/25fc6633c6feecfc01fd46f4926947f31d2e5945/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json#L2690

@wata727
Copy link
Member

wata727 commented Aug 29, 2022

Good catch. You can change the rule to use the validMachineSizes.
https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.17.1/rules/utils.go

Example: #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants