AWS ALB supports rules based on matching both host and path conditions in the same rule.
You can also create rules that combine host-based routing and path-based routing.
I've checked the console and the UI does indeed allow for selecting host and path conditions in the same rule.
Terraform aws_alb_listener_rule seems to support host OR path conditions.
Must be one of path-pattern for path based routing or host-header for host based routing.
Emphasis mine
Is there a way to Terraform an ALB rule that only triggers when both the request hostname and path match some criteria?