terraform-provider-aws: Crash interacting with target groups for network load balancers

Hi there,

I’m trying to create target groups for a network load balancer and terraform is crashing like in the output in Gist. Target groups for application load balancers works fine. This behaviour started to occur two days ago, and, as of my knowledge, nothing changed in my environment.

Terraform Version

Terraform v0.11.5

  • provider.aws v1.12.0

Affected Resource(s)

  • aws_lb_target_group

Terraform Configuration Files

resource "aws_lb_target_group" "network-target-group" {
  name     = "network-target-group"
  port     = "1024"
  protocol = "TCP"
  vpc_id   = "${var.aws_vpc}"
}

Debug Output

Panic Output

https://gist.github.com/tiagowegner/552984c751b6b4c0a36b265e61c7b92c

Expected Behavior

Target group created, state update and successful terraform exit.

Actual Behavior

Target group created, state not updated and terraform crash.

Steps to Reproduce

  1. terraform apply Alternative:
  2. After crash, run terraform import aws_lb_target_group.network-target-group <target-group-arn>

Important Factoids

I’m running terraform behind a corporate proxy, using environment variables to set proxy address. I checked and it seems nothing is being blocked.

References

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

FYI given the severity here, I think the right course of action will be to immediately release v1.13.0 of the AWS provider. I’ll post an update very shortly.

v1.13.0 binaries are uploaded and a quick smoke test of this issue shows it working as expected for me.

@bflad this issue is blocking us. Would you cherry-pick it off of the commit for 1.12.0 and release it as 1.12.1?

edit: also, thank you for the quick fix. 3 hours from report to fix 👏