tencentcloudstack / terraform-provider-tencentcloud

Terraform Tencent Cloud Provider
https://www.terraform.io/docs/providers/tencentcloud/
Mozilla Public License 2.0
191 stars 132 forks source link

tencentcloud_kubernetes_node_pool node_os values #653

Open kyrogue opened 3 years ago

kyrogue commented 3 years ago

Are the values of node_os hardcoded to be tlinux2.4x86_64, ubuntu18.04.1x86_64, ubuntu16.04.1 LTSx86_64, centos7.6.0_x64 and centos7.2x86_64?

How can we use other OS versions? What if we have tlinux2.2 only? How are the values tlinux2.4x86_64, ubuntu18.04.1x86_64, ubuntu16.04.1 LTSx86_64, centos7.6.0_x64 and centos7.2x86_64 derived?

  ~ resource "tencentcloud_kubernetes_node_pool" "devops" {
...
      ~ node_os               = "tlinux2.4x86_64" -> "tlinux2.2x86_64"
        # (15 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

..
Error: [TencentCloudSDKError] Code=InvalidParameter.Param, Message=PARAM_ERROR(oName:tlinux2.2x86_64, osCustomizeType:GENERAL not found),

Terraform version:

Terraform v1.0.4
on darwin_amd64
+ provider registry.terraform.io/tencentcloudstack/tencentcloud v1.58.0
Kagashino commented 2 years ago

Hi, @kyrogue Perhaps the datasource tencentcloud_images can help you to query available os names.