Loading...
Loading...
### Terraform Version ```shell 1.14.6 ``` ### Terraform Configuration Files ```terraform terraform { required_providers { alicloud = { source = "aliyun/alicloud" version = "1.269.0" } kubernetes = { source = "hashicorp/kubernetes" version = "2.27.0" } helm = { source = "hashicorp/helm" version = ">= 2.4.1" } } backend "oss" { bucket = "xuetangx-terraform-states" prefix = "" key = "env/env/base/terraform.tfstate" acl = "private" region = "cn-beijing" encrypt = "true" } } provider "alicloud" { region = "cn-beijing" assume_role { role_arn = "" session_name = "operator" } } provider "alicloud" { region = "cn-beijing" alias = "alicloud-cdn" assume_role { role_arn = " session_name = "t" } } provider "kubernetes" { config_path = "~/.kube/config" config_context = "kubernetes" } provider "helm" { kubernetes { config_path = "~/.kube/config" config_context = "kubernetes" } } ``` ### Debug Output ``` !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! Terraform crashed! This is always indicative of a bug within Terraform. Please report the crash with Terraform[1] so that we can fix this. When reporting bugs, please include your terraform version, the stack trace shown below, and any additional information which may help replicate the issue. [1]: https://github.com/hashicorp/terraform/issues !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! panic: interface conversion: interface {} is float64, not string goroutine 66 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/hashicorp/terraform/internal/logging.PanicHandler() github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x16a panic({0x13b47940?, 0xc0068764e0?}) runtime/panic.go:785 +0x132 github.com/hashicorp/terraform/internal/command/jsonformat/structured/attribute_path.(*PathMatcher).GetChildWithKey(0xc00a199980, {0xc004708b60, 0xd}) github.com/hashicorp/terraform/internal/command/jsonformat/structured/attribute_path/matcher.go:154 +0x2ec github.com/hashicorp/terraform/internal/command/jsonformat/structured.ChangeMap.GetChild({0xc0035a4690, 0xc0035a4780, 0x0, 0xc0035a4960, 0xc0035a4a50, {0x140c1d30, 0xc00a199960}, {0x140c1d30, 0xc00a199980}, 0x1}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/structured/map.go:76 +0x39e github.com/hashicorp/terraform/internal/command/jsonformat/differ.processObject[...]({0x0, 0x0, {0x13ac1840, 0xc0035a4690}, {0x13ac1840, 0xc0035a4780}, {0x0, 0x0}, {0x13ac1840, 0xc0035a4960}, ...}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/differ/object.go:48 +0x1df github.com/hashicorp/terraform/internal/command/jsonformat/differ.computeAttributeDiffAsNestedObject({0x0, 0x0, {0x13ac1840, 0xc0035a4690}, {0x13ac1840, 0xc0035a4780}, {0x0, 0x0}, {0x13ac1840, 0xc0035a4960}, ...}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/differ/object.go:25 +0x4e github.com/hashicorp/terraform/internal/command/jsonformat/differ.computeDiffForNestedAttribute({0x0, 0x0, {0x13ac1840, 0xc0035a4690}, {0x13ac1840, 0xc0035a4780}, {0x0, 0x0}, {0x13ac1840, 0xc0035a4960}, ...}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/differ/attribute.go:34 +0x205 github.com/hashicorp/terraform/internal/command/jsonformat/differ.ComputeDiffForAttribute({0x0, 0x0, {0x13ac1840, 0xc0035a4690}, {0x13ac1840, 0xc0035a4780}, {0x0, 0x0}, {0x13ac1840, 0xc0035a4960}, ...}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/differ/attribute.go:18 +0x45 github.com/hashicorp/terraform/internal/command/jsonformat/differ.ComputeDiffForBlock({0x0, 0x0, {0x13ac1840, 0xc0035a4660}, {0x13ac1840, 0xc0035a4750}, {0x13ac1840, 0xc0035a48d0}, {0x13ac1840, 0xc0035a4930}, ...}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/differ/block.go:45 +0x485 github.com/hashicorp/terraform/internal/command/jsonformat.precomputeDiffs({{0x130b4a9d, 0x3}, 0xc006d2ea80, {0xc00c8f2000, 0x635, 0x721}, {0xc00c282000, 0x33b, 0x364}, {0xc000820008, ...}, ...}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/diff.go:52 +0x345 github.com/hashicorp/terraform/internal/command/jsonformat.Plan.renderHuman({{0x130b4a9d, 0x3}, 0xc006d2ea80, {0xc00c8f2000, 0x635, 0x721}, {0xc00c282000, 0x33b, 0x364}, {0xc000820008, ...}, ...}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/plan.go:60 +0x85 github.com/hashicorp/terraform/internal/command/jsonformat.Renderer.RenderHumanPlan({0xc000574768?, 0xc0006cb670?, 0xd0?}, {{0x130b4a9d, 0x3}, 0xc006d2ea80, {0xc00c8f2000, 0x635, 0x721}, {0xc00c282000, ...}, ...}, ...) github.com/hashicorp/terraform/internal/command/jsonformat/renderer.go:122 +0x1cf github.com/hashicorp/terraform/internal/command/views.(*OperationHuman).Plan(0xc000a0f820, 0xc002168160, 0xc008ef0930) github.com/hashicorp/terraform/internal/command/views/operation.go:130 +0x2fc github.com/hashicorp/terraform/internal/backend/local.(*Local).opPlan(0xc00071b040, {0x140c08b0, 0xc0008176d0}, {0x140c08b0, 0xc000817720}, 0xc0006772c0, 0xc000c0d100) github.com/hashicorp/terraform/internal/backend/local/backend_plan.go:202 +0xe75 github.com/hashicorp/terraform/internal/backend/local.(*Local).Operation.func1() github.com/hashicorp/terraform/internal/backend/local/backend.go:331 +0xb8 created by github.com/hashicorp/terraform/internal/backend/local.(*Local).Operation in goroutine 1 github.com/hashicorp/terraform/internal/backend/local/backend.go:324 +0x3fa ``` ### Expected Behavior console out some resource need modify ### Actual Behavior crash ### Steps to Reproduce terraform init terraform plan ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.