Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
➜ anchnet-terraform-framwork-demo git:(feature_smartops) ✗ tf -v
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
➜ anchnet-terraform-framwork-demo git:(feature_smartops) ✗
╷
│ Error: id is broken,cls-dpvb27uh#ins-gkvsm6ud#ins-7la52daf#ins-rjbve37x
│
│ with module.tencentcloud_kubernetes_cluster.module.tencentcloud_kubernetes_scale_worker["TKE-SW-1-TKE-SmartOps"].tencentcloud_kubernetes_scale_worker.items,
│ on ../../../../../../terraform.cloudbase.modules/tencentcloud/tencentcloud_kubernetes_scale_worker/main.tf line 34, in resource "tencentcloud_kubernetes_scale_worker" "items":
│ 34: resource "tencentcloud_kubernetes_scale_worker" "items" {
│
╵
➜
Expected Behavior
1.resource created success,no error in console output
2.resource can destroy by terraform destroy
Actual Behavior
1.resource created success,console output error
2.resource can not destroy by terraform destroy
Steps to Reproduce
terraform apply
Important Factoids
1.after i tried such times on my local, i found if the count > 1 then the error will be hit. if count=1, then everything is fine.
2.i also checked the id in state file, the id field same as the output. id is "cls-dpvb27uh#ins-gkvsm6ud#ins-7la52daf#ins-rjbve37x"
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
below are the output by plan & apply ⌘
terraform plan output: https://gist.github.com/troyqu/5f5312a1db7bd31d752e98c1d60c5b82 terraform apply output: https://gist.github.com/troyqu/977cafb44dc58f8b392bf3716193f15d
Panic Output
Expected Behavior
1.resource created success,no error in console output 2.resource can destroy by terraform destroy
Actual Behavior
1.resource created success,console output error 2.resource can not destroy by terraform destroy
Steps to Reproduce
terraform apply
Important Factoids
1.after i tried such times on my local, i found if the count > 1 then the error will be hit. if count=1, then everything is fine. 2.i also checked the id in state file, the id field same as the output. id is "cls-dpvb27uh#ins-gkvsm6ud#ins-7la52daf#ins-rjbve37x"![image](https://github.com/user-attachments/assets/a9d950f0-5b24-4107-8229-163d2d076359)
References
https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.81.107/docs/resources/kubernetes_scale_worker#example-usage