Closed falconh closed 4 years ago
Relevant log information
panic: interface conversion: interface {} is nil, not map[string]interface {}
2019-09-26T09:11:25.073+0800 [DEBUG] plugin.terraform-provider-aws_v2.29.0_x4.exe:
2019-09-26T09:11:25.073+0800 [DEBUG] plugin.terraform-provider-aws_v2.29.0_x4.exe: goroutine 106 [running]:
2019-09-26T09:11:25.073+0800 [DEBUG] plugin.terraform-provider-aws_v2.29.0_x4.exe: github.com/terraform-providers/terraform-provider-aws/aws.readCapacityReservationSpecificationFromConfig(0xc000b6c1b0, 0x4fcf002)
2019-09-26T09:11:25.073+0800 [DEBUG] plugin.terraform-provider-aws_v2.29.0_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_launch_template.go:1352 +0x2f4
2019-09-26T09:11:25.073+0800 [DEBUG] plugin.terraform-provider-aws_v2.29.0_x4.exe: github.com/terraform-providers/terraform-provider-aws/aws.buildLaunchTemplateData(0xc0002b8f50, 0x29, 0xc000b063c0, 0x43)
2019-09-26T09:11:25.073+0800 [DEBUG] plugin.terraform-provider-aws_v2.29.0_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_launch_template.go:1073 +0x61b
2019-09-26T09:11:25.073+0800 [DEBUG] plugin.terraform-provider-aws_v2.29.0_x4.exe: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsLaunchTemplateCreate(0xc0002b8f50, 0x3ff2080, 0xc00074c900, 0x2, 0x99b8440)
2019-09-26T09:11:25.073+0800 [DEBUG] plugin.terraform-provider-aws_v2.29.0_x4.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_launch_template.go:525 +0xcf```
I'm going to close this issue due to inactivity (90 days without response ⏳ ). This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
https://gist.github.com/falconh/c78713024c839d785d242c64279e68b9
Expected Behavior
During the creation of aws_launch_template, the aws provider should ignore the empty block of following attributes
and create the aws_launch_template resource successfully
Actual Behavior
Panic happened and crashed the terraform
Steps to Reproduce
terraform apply
Important Factoids
References