AWS Load Balancer Forward action stickiness

Solution for AWS Load Balancer Forward action stickiness
is Given Below:

So, I am using a module based on this AWS LB Module

Now, I’m trying to add stickiness option on the default_action forward. Not sure why it’s not working. I’ve tried all sorts of changes. My last change is this:

  dynamic "default_action" {
    for_each = contains(["authenticate-oidc", "authenticate-cognito"], lookup(var.https_listeners[count.index], "action_type", {})) ? [var.https_listeners[count.index]] : []
    content {
      type             = "forward"
      target_group_arn = aws_lb_target_group.main[lookup(default_action.value, "target_group_index", count.index)].id
      stickiness {
        enabled  = lookup(default_action.value, "stickiness", false)
        duration = lookup(default_action.value, "duration", null)
      }
    }
  }

I’m trying to pass this:

  https_listeners = [
    {
      port            = 443
      protocol        = "HTTPS"
      certificate_arn = var.certificate_arn
      stickiness      = true
      duration        = 3600
    },
  ]

I’m now thinking of trying to just use the default stickiness as enabled, and duration 3600.

Any thoughts on this?

EDIT 1: I’ve tried changing the module block as @bryan mentioned I am passing an empty map. Just for test purposes, I hardcoded the values for stickiness like below:

  dynamic "default_action" {
    for_each = contains(["authenticate-oidc", "authenticate-cognito"], lookup(var.https_listeners[count.index], "action_type", {})) ? [var.https_listeners[count.index]] : []
    content {
      type             = "forward"
      target_group_arn = aws_lb_target_group.main[lookup(default_action.value, "target_group_index", count.index)].id
      stickiness {
        enabled  = true
        duration = 3600
      }
    }
  }

Expectation is for the listener default action to set the group stickiness.. but somehow, it doesn’t. I’ve also raised this issue on the AWS LB Module repo