title: Using AWS ALB to have subdomains pointing to different target groups
body: <p>Right now I have a domain (<code>example.com</code>) that I have hosted on Google Domains, but uses Amazon's Route 53 DNS servers, and I've created a hosted zone &amp; registered an SSL certificate for free with ACM. So I got it to take requests for <code>example.com</code> and forwards them to a target group (EC2 instance). </p>
  
  <p>I'd like to expand this into:</p>
  
  <ul>
  <li><code>staging.example.com</code></li>
  <li><code>prod.example.com</code></li>
  </ul>
  
  <p>where each has its own target group it points to. </p>
  
  <p>Is this possible with an ALB? How would I encode this into the load balancer's routing rules? </p>
  
  <p>(Also: would I have to re-verify the SSL cert for the subdomains?)</p>