deregistration_delay.timeout_seconds is not parsed from target group attributes when the function flattenAwsLbTargetGroupResource() is called.
This causes that the "deregistration_delay" always imported as "null" with terraform init command.
"deregistration_delay": null,
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}
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!
Most helpful comment
For some reason
deregistration_delayis working for ALB but ignored for NLB.