module "app" {
  source = "../../app"

  container_image   = var.container_image
  env               = "prd"
  vpc_id            = var.vpc_id
  health_check_path = var.health_check_path

  service = {
    target_cluster_arn = var.target_cluster_arn
    resources = {
      cpu                   = 2048
      memory                = 16384
      ephemeral_storage_gib = 50
      fargate_spot_weight   = 0
      fargate_weight        = 1
    }
    # Private target group only — not exposed on the public ALB.
    target_group_arn = aws_lb_target_group.hu_agent_private.arn
  }

  # Pollers ON — PRD owns the production workload (cutover). The shared app module
  # defaults all toggles on, so toggles stay at their defaults.
  env_vars = {
    # Drive the Claude provider (validated E2E in dev, 2026-06-02).
    # Rollback = set back to "cursor" (or remove; the config default is cursor) and redeploy.
    AGENT_PROVIDER = "claude"
  }
}
