We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16dbc2b commit 62485bbCopy full SHA for 62485bb
modules/alb/main.tf
@@ -80,7 +80,7 @@ resource "aws_lb_listener" "this" {
80
81
content {
82
type = default_action.value.type
83
- target_group_arn = aws_lb_target_group.this[default_action.value.target_group]
+ target_group_arn = aws_lb_target_group.this[default_action.value.target_group].arn
84
order = default_action.value.order
85
86
dynamic "authenticate_cognito" {
@@ -152,7 +152,7 @@ resource "aws_lb_listener" "this" {
152
}
153
154
dynamic "redirect" {
155
- for_each = length(try(default_action.value.redirect, {})) ? [1] : []
+ for_each = length(try(default_action.value.redirect, {})) > 0 ? [1] : []
156
157
158
status_code = default_action.value.redirect.status_code
0 commit comments