Terraform-provider-aws: "deregistration_delay.timeout_seconds" is not parsed from target group attributes

Created on 6 Dec 2019  ·  3Comments  ·  Source: hashicorp/terraform-provider-aws

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 "me too" comments, 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

Description

deregistration_delay.timeout_seconds is not parsed from target group attributes when the function flattenAwsLbTargetGroupResource() is called.

https://github.com/terraform-providers/terraform-provider-aws/blob/3bad5dbd5d8df67cb85dc1bfc838bda295134000/aws/resource_aws_lb_target_group.go#L588

This causes that the "deregistration_delay" always imported as "null" with terraform init command.

"deregistration_delay": null,

New or Affected Resource(s)

  • aws_lb_target_group

Potential Terraform Configuration

resource "aws_lb_target_group" "my_nlb_tg" {
  name = "my-nlb-tg"
  vpc_id = var.vpc.vpc_id
  target_type = "instance"
  protocol = "TCP"
  port = 80
}

$ terraform import aws_lb_target_group.my_nlb_tg {arn}

References

  • #0000
enhancement needs-triage servicelbv2

Most helpful comment

For some reason deregistration_delay is working for ALB but ignored for NLB.

All 3 comments

For some reason deregistration_delay is working for ALB but ignored for NLB.

I got it. thank 👍

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!

Was this page helpful?
0 / 5 - 0 ratings