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

Add new instance types #270

Merged
merged 2 commits into from
Jun 9, 2023
Merged

Add new instance types #270

merged 2 commits into from
Jun 9, 2023

Conversation

uthark
Copy link
Contributor

@uthark uthark commented May 22, 2023

Fixes the following error:

tflint -c ../.tflint.hcl
1 issue(s) found:

aks-cluster.tf:133:26: Error - "Standard_NC24ads_A100_v4" is an invalid value as vm_size (azurerm_kubernetes_cluster_node_pool_invalid_vm_size)

(sorted list in the first commit alphabetically, 2nd commit adds missing VM sizes)

@uthark
Copy link
Contributor Author

uthark commented Jun 2, 2023

@wata727 please take a look

@@ -38,12 +38,16 @@ var validMachineSizes = []string{
"Standard_D1",
"Standard_D11",
"Standard_D11_v2",
"Standard_D11_v2_Promo",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Promo series certainly seems to exist, but it doesn't seem to be mentioned anywhere in the official documentation. Where are these sources?
https://learn.microsoft.com/en-us/azure/virtual-machines/sizes

rules/utils.go Outdated
"Standard_H16mr",
"Standard_H16r",
"Standard_H8",
"Standard_H8m",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. they are not returned by the API.
  2. They are retired, see https://learn.microsoft.com/en-us/azure/cloud-services/cloud-services-sizes-specs#h-series

On August 31, 2022, we're retiring the following H-series Azure VM sizes:

H8
H8m
H16
H16r
H16m
H16mr
H8 Promo
H8m Promo
H16 Promo
H16r Promo
H16m Promo
H16mr Promo

Would you suggest to keep them? I can update the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wata727 ping

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your explanation.
I was concerned if anyone was still using these sizes, but according to the article, it seems that no such user exists anymore.

Copy link
Member

@wata727 wata727 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Great contribution.

@wata727 wata727 merged commit 71e36f9 into terraform-linters:master Jun 9, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants