Your version of Terraform is out of date! The latest version
is 1.9.2. You can update by downloading from https://www.terraform.io/downloads.html
➜ 05-kubernetes git:(feature_smartops) ✗
Affected Resource(s)
tencentcloud_kubernetes_node_pool
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
Debug Output
nothing
Panic Output
module.tencentcloud_kubernetes_cluster.module.tencentcloud_kubernetes_node_pool["TKE-NL-TKE-SmartOps"].tencentcloud_kubernetes_node_pool.items: Creating...
╷
│ Error: [TencentCloudSDKError] Code=InvalidParameter.Param, Message=PARAM_ERROR(InstanceNameStyle is empty), RequestId=1a40ca0c-87c0-4074-9f40-ae46797fa522
│
│ with module.tencentcloud_kubernetes_cluster.module.tencentcloud_kubernetes_node_pool["TKE-NL-TKE-SmartOps"].tencentcloud_kubernetes_node_pool.items,
│ on ../../../../../../terraform.cloudbase.modules/tencentcloud/tencentcloud_kubernetes_node_pool/main.tf line 32, in resource "tencentcloud_kubernetes_node_pool" "items":
│ 32: resource "tencentcloud_kubernetes_node_pool" "items" {
│
╵
➜ 05-kubernetes git:(feature_smartops) ✗
Expected Behavior
resource create success
Actual Behavior
resource create failed and console output error
Steps to Reproduce
terraform apply
Important Factoids
after i checked the provider source code, i found no instancenamestyle related properties, error happend when provider call sdk to create resource, exception info refer to Panic output part.
Community Note
Terraform Version
➜ 05-kubernetes git:(feature_smartops) ✗ tf version
Terraform v1.8.4 on darwin_amd64
Your version of Terraform is out of date! The latest version is 1.9.2. You can update by downloading from https://www.terraform.io/downloads.html ➜ 05-kubernetes git:(feature_smartops) ✗
Affected Resource(s)
Terraform Configuration Files
Debug Output
nothing
Panic Output
Expected Behavior
resource create success
Actual Behavior
resource create failed and console output error
Steps to Reproduce
terraform apply
Important Factoids
after i checked the provider source code, i found no instancenamestyle related properties, error happend when provider call sdk to create resource, exception info refer to Panic output part.
node pool resource schema source code snapshot![image](https://github.com/user-attachments/assets/4a87aa5b-6855-4b8a-a645-4313b760c2d2)
References
https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/kubernetes_node_pool https://www.tencentcloud.com/zh/document/api/377/31018#instancenamesettings
0000