You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Warning: Invalid Attribute Combination
│
│ with module.alb.aws_lb_target_group.this["session_manager_main"],
│ on .terraform/modules/alb/main.tf line 518, in resource "aws_lb_target_group" "this":
│ 518: port = try(each.value.target_type, null) == "lambda" ? null : try(each.value.port, var.default_port)
│
│ Attribute "port" cannot be specified when "target_type" is "lambda".
│
│ This will be an error in a future release.
Additional context
A second (and any future) apply ran without errors. It is only the first apply that produces the error.
Looks like the use of port = null has maybe been deprecated completely when using lambda as a target group.
Versions
Module version [Required]:9.12.0
Terraform version:
Terraform v1.10.0
on linux_amd64
Reproduction Code [Required]
Steps to reproduce the behavior:
terraform apply
- warning on first runExpected behavior
should apply without warning.
Actual behavior
Additional context
A second (and any future) apply ran without errors. It is only the first apply that produces the error.
Looks like the use of
port = null
has maybe been deprecated completely when using lambda as a target group.hashicorp/terraform-provider-aws#35457
The text was updated successfully, but these errors were encountered: