title: Wildcards on query for AWS cli for elbv2
body: <p>I'm trying to get the ARN of some LoadBalancer which I only know the prefix of the DNS name.</p>
  <p>As an example, <code>aws elbv2 describe-load-balancers --query 'LoadBalancers[].DNSName[]'</code> will print me:</p>
  <pre><code>[
      &quot;services-green-********.elb.eu-central-1.amazonaws.com&quot;,
      &quot;services-blue-********.elb.eu-central-1.amazonaws.com&quot;
  ]
  </code></pre>
  <p>Something like</p>
  <pre><code>aws elbv2 describe-load-balancers --query &quot;LoadBalancers[?DNSName=='services-green-*']&quot;
  </code></pre>
  <p>is not working because wildcards are not accepted and using filters like at <a href="https://stackoverflow.com/questions/27719831/how-can-i-use-wildcards-in-aws-cli-ec2-commands">ec2 commands</a> is not possible.</p>
  <p>How can I get the ARN without falling back to using jq?</p>