title: combine multiple aws cli calls to get tag values
body: <p>I have a script that fetches list of instances having tag x having abc value. The count of ec2 instances returned are in hundreds, now for each instance I need to fetch 2 tag values. Not all instances will have both the tags, it could be 1 or both or none. For now I am issuing 2 calls to get the value of each tag (this is a bash shell)</p>
  <pre><code> market=`aws ec2 describe-tags --filters &quot;Name=resource-id,Values=$id&quot; &quot;Name=key,Values=market&quot; --query Tags[].Value --region $aws_region --output text`
  service=`aws ec2 describe-tags --filters &quot;Name=resource-id,Values=$id&quot; &quot;Name=key,Values=service&quot; --query Tags[].Value --region $aws_region --output text`
  </code></pre>
  <p>Is there any way to fetch the values of both tags in a single call?</p>