terraform-provider-aws: Terraform AWS Provider plugin v2.64.0 failed on `err: unexpected EOF panic: unknown value type in TypeMap bool`

Community Note

  • 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 other comments that do not add relevant new information or questions, 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

Terraform: 0.10.8 AWS Provider: 2.64

Affected Resource(s)

TBD

  • aws_XXXXX

Terraform Configuration Files

TBD

Debug Output

TBD

Panic Output

[19:14:36]W:   [Step 2/2]  [1m [31mError:  [0m [0m [1mError running plan: 1 error(s) occurred:
[19:14:36]W:   [Step 2/2] 
[19:14:36]W:   [Step 2/2] * module.MY_MODULE.aws_autoscaling_group.app: 1 error(s) occurred:
[19:14:36]W:   [Step 2/2] 
[19:14:36]W:   [Step 2/2] * module.MY_MODULE.aws_autoscaling_group.app: unexpected EOF [0m
[19:14:36]W:   [Step 2/2] 
[19:14:36]W:   [Step 2/2]  [0m [0m [0m
[19:14:36]W:   [Step 2/2] panic: unknown value type in TypeMap bool
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: 
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: goroutine 2395 [running]:
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.SerializeValueForHash(0xc004cd8a80, 0x4d37480, 0xc0001f15c0, 0xc0035e48c0)
[19:14:36] :   [Step 2/2] 
[19:14:36] :   [Step 2/2] 
[19:14:36] :   [Step 2/2] !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/serialize.go:61 +0x8ca
[19:14:36] :   [Step 2/2] 
[19:14:36] :   [Step 2/2] Terraform crashed! This is always indicative of a bug within Terraform.
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.HashSchema.func1(0x4d37480, 0xc0001f15c0, 0x1)
[19:14:36] :   [Step 2/2] A crash log has been placed at "crash.log" relative to your current
[19:14:36] :   [Step 2/2] working directory. It would be immensely helpful if you could please
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/set.go:43 +0x68
[19:14:36] :   [Step 2/2] report the crash with Terraform[1] so that we can fix this.
[19:14:36] :   [Step 2/2] 
[19:14:36] :   [Step 2/2] When reporting bugs, please include your terraform version. That
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Set).hash(0xc0013f8260, 0x4d37480, 0xc0001f15c0, 0xc00256aa00, 0x0)
[19:14:36] :   [Step 2/2] information is available on the first line of crash.log. You can also
[19:14:36] :   [Step 2/2] get it by running 'terraform --version' on the command line.
[19:14:36] :   [Step 2/2] 
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/set.go:254 +0x3d
[19:14:36] :   [Step 2/2] [1]: https://github.com/hashicorp/terraform/issues
[19:14:36] :   [Step 2/2] 
[19:14:36] :   [Step 2/2] !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Set).add(0xc0013f8260, 0x4d37480, 0xc0001f15c0, 0xc0035e4a00, 0x0, 0xc004caf9b0)
[19:14:36] :   [Step 2/2] /opt/buildagent/work/a0dd5e64201c1a18
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/set.go:231 +0x83
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*ConfigFieldReader).readSet(0xc0001f03f0, 0xc000c57d10, 0x1, 0x1, 0xc0035e4a00, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/field_reader_config.go:309 +0x329
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*ConfigFieldReader).readField(0xc0001f03f0, 0xc000c57d10, 0x1, 0x1, 0xc003200d00, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/field_reader_config.go:132 +0x97f
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*ConfigFieldReader).ReadField(0xc0001f03f0, 0xc000c57d10, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc003375ec0, ...)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/field_reader_config.go:28 +0xae
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*MultiLevelFieldReader).ReadFieldExact(0xc0025b9b60, 0xc000c57d10, 0x1, 0x1, 0x5a108b6, 0x6, 0x0, 0x0, 0x0, 0x0, ...)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/field_reader_multi.go:31 +0xd0
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*ResourceData).get(0xc002cc0700, 0xc000c57d10, 0x1, 0x1, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource_data.go:535 +0xfa
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*ResourceData).getChange(0xc002cc0700, 0x5a0e900, 0x4, 0x1201, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource_data.go:511 +0x122
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*ResourceData).diffChange(0xc002cc0700, 0x5a0e900, 0x4, 0x198, 0x5a9ed94, 0x1, 0x0, 0x0)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource_data.go:488 +0x97
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.schemaMap.diffSet(0xc0035c4d50, 0x5a0e900, 0x4, 0xc0035e4a00, 0xc004cd97a8, 0x6434860, 0xc002cc0700, 0x42d200, 0x0, 0x0)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/schema.go:1217 +0x66
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.schemaMap.diff(0xc0035c4d50, 0x5a0e900, 0x4, 0xc0035e4a00, 0xc0025b9a00, 0x6434860, 0xc002cc0700, 0x0, 0x0, 0x0)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/schema.go:958 +0x558
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.schemaMap.Diff(0xc0035c4d50, 0xc003136460, 0xc004c9f440, 0xc004ad8100, 0x4f27dc0, 0xc004080500, 0xc00430f101, 0x412a06, 0x5a4ddc2, 0xc004c54f40)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/schema.go:506 +0x215
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Diff(0xc0035d8990, 0xc003136460, 0xc004c9f440, 0x4f27dc0, 0xc004080500, 0x1, 0xc000bedba8, 0x40be26)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource.go:335 +0x178
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Diff(0xc004a2c480, 0xc004c91200, 0xc003136460, 0xc004c9f440, 0xc0001f0180, 0xc00430f110, 0x18)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/provider.go:307 +0x99
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: github.com/hashicorp/terraform-plugin-sdk/plugin.(*ResourceProviderServer).Diff(0xc002a77e60, 0xc0025b8f40, 0xc000c379f0, 0x0, 0x0)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/plugin/resource_provider.go:541 +0x57
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: reflect.Value.call(0xc000e3cfc0, 0xc002300d48, 0x13, 0x5a0dfd4, 0x4, 0xc000bedf18, 0x3, 0x3, 0xc001bf4738, 0x62171c, ...)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/goenv/versions/1.13.7/src/reflect/value.go:460 +0x5f6
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: reflect.Value.Call(0xc000e3cfc0, 0xc002300d48, 0x13, 0xc001bf4718, 0x3, 0x3, 0x3, 0x641d9a0, 0x2c)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/goenv/versions/1.13.7/src/reflect/value.go:321 +0xb4
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: net/rpc.(*service).call(0xc00331b180, 0xc003213e00, 0xc00366bf60, 0xc00366bf70, 0xc003950080, 0xc003116a00, 0x4709fe0, 0xc0025b8f40, 0x16, 0x470a020, ...)
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/goenv/versions/1.13.7/src/net/rpc/server.go:377 +0x16f
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4: created by net/rpc.(*Server).ServeCodec
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.554Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:  /opt/goenv/versions/1.13.7/src/net/rpc/server.go:474 +0x42b
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [ERROR] root.MY_MODULE: eval: *terraform.EvalDiff, err: unexpected EOF
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [ERROR] root.MY_MODULE: eval: *terraform.EvalSequence, err: unexpected EOF
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.564Z [DEBUG] plugin: plugin process exited: path=/opt/buildagent/work/a0dd5e64201c1a18/terraform/MY_MODULE/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.64.0_x4
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [TRACE] [walkPlan] Exiting eval tree: module.MY_MODULE.aws_autoscaling_group.app
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [TRACE] dag/walk: upstream errored, not walking "module.MY_MODULE.output.asg_name"
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [TRACE] dag/walk: upstream errored, not walking "aws_autoscaling_policy.MY_MODULE-scaling-policy"
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [TRACE] dag/walk: upstream errored, not walking "module.MY_MODULE.aws_autoscaling_lifecycle_hook.my-asg-lifecycle-hook"
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [TRACE] dag/walk: upstream errored, not walking "module.MY_MODULE.output.asg_name_array"
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [TRACE] dag/walk: upstream errored, not walking "provider.aws (close)"
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)"
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [TRACE] dag/walk: upstream errored, not walking "root"
[19:14:36]W:   [Step 2/2] 2020/05/29 02:14:36 [DEBUG] plugin: waiting for all plugin processes to complete...
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.565Z [WARN ] plugin: error closing client during Kill: err="connection is shut down"
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.565Z [DEBUG] plugin.terraform-provider-template_v2.1.2_x4: 2020/05/29 02:14:36 [ERR] plugin: plugin server: accept unix /opt/buildagent/temp/buildTmp/plugin481085501: use of closed network connection
[19:14:36]W:   [Step 2/2] 2020-05-29T02:14:36.566Z [DEBUG] plugin: plugin process exited: path=/opt/buildagent/work/a0dd5e64201c1a18/terraform/MY_MODULE/.terraform/plugins/linux_amd64/terraform-provider-template_v2.1.2_x4

Expected Behavior

Terraform should run plan without any issue. Which is the case if provider version 2.63 is used.

Actual Behavior

Terraform quitted with panic as a result of the above log.

Steps to Reproduce

  1. terraform plan

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 71
  • Comments: 18 (3 by maintainers)

Commits related to this issue

Most upvoted comments

Facing same issue, too. Version:

Terraform: v0.11.14
AWS Provider: 2.64

We temporary make the bool value surrounded by double quotes " to solve the issue. e.g.

 tags = [
   {
     key                 = "env"
     value               = "prod"
     propagate_at_launch = "true"
   }
]

Since terraform 0.11 document mentions:

It is recommended for now to specify boolean values for variables as the strings โ€œtrueโ€ and โ€œfalseโ€, to avoid some caveats in the conversion process. A future version of Terraform will properly support boolean values and so relying on the current behavior could result in backwards-incompatibilities at that time.

reference: https://www.terraform.io/docs/configuration-0-11/variables.html#booleans

Quick question: Is anyone experiencing this with Terraform 0.12?

I tested with terraform 0.12.20 and 0.12.26 with no problems.

One of my team members found that if we change propagate_on_launch = true to propagate_on_launch = โ€œtrueโ€ it works around this issue.

We are also facing the same Issue.

Terraform: 0.11 AWS: 2.64

panic: unknown value type in TypeMap bool 2020-05-29T10:37:09.580Z [DEBUG] plugin.terraform-provider-aws_v2.64.0_x4:

We havenโ€™t faced any issue with the below versions.

Terraform: 0.11 AWS: 2.63

Same issue with below setup:

Terraform: v0.11.14
AWS Provider: 2.64