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

Terraform Crash #22611

Closed
shivamgupta01 opened this issue Aug 27, 2019 · 2 comments
Closed

Terraform Crash #22611

shivamgupta01 opened this issue Aug 27, 2019 · 2 comments

Comments

@shivamgupta01
Copy link

Terraform Version

... 12.6

Terraform Configuration Files

...

Debug Output

Crash Output

panic: not a string

goroutine 136 [running]:
github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty.Value.AsString(...)
/go/src/github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/value_ops.go:1026
github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty.Value.AsValueMap(0x222aa20, 0xc0001d6320, 0x19c94a0, 0xc0001d6340, 0x3)
/go/src/github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/value_ops.go:1095 +0x38a
github.com/hashicorp/terraform/terraform.evaluateResourceForEachExpressionKnown(0x2229960, 0xc00039c780, 0x225ab20, 0xc00088f1e0, 0x1c, 0xc0001c0a10, 0x19ecec0, 0x0, 0x19ecec0)
/go/src/github.com/hashicorp/terraform/terraform/eval_for_each.go:84 +0x5bd
github.com/hashicorp/terraform/terraform.evaluateResourceForEachExpression(0x2229960, 0xc00039c780, 0x225ab20, 0xc00088f1e0, 0x1, 0x1, 0x0, 0x0)
/go/src/github.com/hashicorp/terraform/terraform/eval_for_each.go:17 +0x5c
github.com/hashicorp/terraform/terraform.(*NodeRefreshableManagedResource).DynamicExpand(0xc0005391b8, 0x225ab20, 0xc00088f1e0, 0x0, 0x0, 0x0)
/go/src/github.com/hashicorp/terraform/terraform/node_resource_refresh.go:42 +0x280
github.com/hashicorp/terraform/terraform.(*Graph).walk.func1(0x1ce5120, 0xc0005391b8, 0x0, 0x0, 0x0)
/go/src/github.com/hashicorp/terraform/terraform/graph.go:103 +0x8b1
github.com/hashicorp/terraform/dag.(*Walker).walkVertex(0xc000495180, 0x1ce5120, 0xc0005391b8, 0xc00088aec0)
/go/src/github.com/hashicorp/terraform/dag/walk.go:392 +0x353
created by github.com/hashicorp/terraform/dag.(*Walker).Update
/go/src/github.com/hashicorp/terraform/dag/walk.go:314 +0xa9b

Expected Behavior

Actual Behavior

Steps to Reproduce

Additional Context

References

@ghost ghost added bug crash labels Aug 27, 2019
@hashibot
Copy link
Contributor

Hello! 🤖

This issue seems to be covering the same problem or request as #22580, so we're going to close it just to consolidate the discussion over there. Thanks!

@ghost
Copy link

ghost commented Sep 27, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants