Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created June 18, 2020 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipmb/fcac64a32f0cac1d50d59062dbaca21e to your computer and use it in GitHub Desktop.
Save ipmb/fcac64a32f0cac1d50d59062dbaca21e to your computer and use it in GitHub Desktop.
Error: Error in function call
on .terraform/modules/client_vpc/terraform-aws-vpc-2.39.0/main.tf line 20, in locals:
20: vpce_tags = merge(
21: var.tags,
22: var.vpc_endpoint_tags,
23: )
|----------------
| var.tags is empty map of string
| var.vpc_endpoint_tags is empty map of string
Call to function "merge" failed: panic in function implementation: must not
call MapVal with empty map
goroutine 20841 [running]:
runtime/debug.Stack(0xc00501fa20, 0x2e071e0, 0x382b3a0)
/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
github.com/zclconf/go-cty/cty/function.errorForPanic(...)
/home/circleci/project/project/vendor/github.com/zclconf/go-cty/cty/function/error.go:44
github.com/zclconf/go-cty/cty/function.Function.Call.func1(0xc0050201d0,
0xc0050201f0)
/home/circleci/project/project/vendor/github.com/zclconf/go-cty/cty/function/function.go:287
+0x8e
panic(0x2e071e0, 0x382b3a0)
/usr/local/go/src/runtime/panic.go:969 +0x166
github.com/zclconf/go-cty/cty.MapVal(0xc00501fdc8, 0xc000603900, 0x2ef2b20,
0xc001bb9860, 0x3892020)
/home/circleci/project/project/vendor/github.com/zclconf/go-cty/cty/value_init.go:198
+0x4cf
github.com/zclconf/go-cty/cty/function/stdlib.glob..func29(0xc007aa6240, 0x2,
0x2, 0x38d47e0, 0xc0006027d0, 0xc0006027d0, 0x0, 0x0, 0x100c4c6, 0xc007aa87b0,
...)
/home/circleci/project/project/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go:765
+0x167
github.com/zclconf/go-cty/cty/function.Function.Call(0xc00010bbc0,
0xc007aa6240, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/circleci/project/project/vendor/github.com/zclconf/go-cty/cty/function/function.go:291
+0x4f2
github.com/hashicorp/hcl/v2/hclsyntax.(*FunctionCallExpr).Value(0xc00061e870,
0xc00407dbe0, 0x0, 0xc005021700, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/circleci/project/project/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go:412
+0x109d
github.com/hashicorp/terraform/lang.(*Scope).EvalExpr(0xc007585ae0, 0x38d3560,
0xc00061e870, 0x38d4760, 0x4d00920, 0x0, 0x0, 0xc0050218d0, 0x1, 0x1, ...)
/home/circleci/project/project/lang/eval.go:93 +0x1b3
github.com/hashicorp/terraform/terraform.(*BuiltinEvalContext).EvaluateExpr(0xc004dbd6c0,
0x38d3560, 0xc00061e870, 0x38d4760, 0x4d00920, 0x0, 0x0, 0x0, 0x2,
0xc005ee6000, ...)
/home/circleci/project/project/terraform/eval_context_builtin.go:286 +0x1e7
github.com/hashicorp/terraform/terraform.(*EvalLocal).Eval(0xc0053fde80,
0x3916360, 0xc004dbd6c0, 0x1, 0x1, 0xc00726fc00, 0x400000000000000)
/home/circleci/project/project/terraform/eval_local.go:43 +0x6d7
github.com/hashicorp/terraform/terraform.EvalRaw(0x386c600, 0xc0053fde80,
0x3916360, 0xc004dbd6c0, 0x2ea75e0, 0x4b909a4, 0x2e071e0, 0xc001c5c3d0)
/home/circleci/project/project/terraform/eval.go:49 +0xc7
github.com/hashicorp/terraform/terraform.Eval(0x386c600, 0xc0053fde80,
0x3916360, 0xc004dbd6c0, 0xc0053fde80, 0x386c600, 0xc0053fde80, 0x0)
/home/circleci/project/project/terraform/eval.go:35 +0x4d
github.com/hashicorp/terraform/terraform.(*Graph).walk.func1(0x30ed0a0,
0xc00370a9f0, 0x0, 0x0, 0x0)
/home/circleci/project/project/terraform/graph.go:73 +0xc77
github.com/hashicorp/terraform/dag.(*Walker).walkVertex(0xc005a502a0,
0x30ed0a0, 0xc00370a9f0, 0xc00487eb80)
/home/circleci/project/project/dag/walk.go:387 +0x357
created by github.com/hashicorp/terraform/dag.(*Walker).Update
/home/circleci/project/project/dag/walk.go:309 +0x11d7
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment