title: AWS CLI to filter images based on tags
body: <p>I want to get AMI's which are not having a <code>specific tag</code> using AWS CLI. I do not know how to use not included filter.</p>
  <p>Tried this BUT getting error.</p>
  <pre><code>aws ec2 describe-images --profile prod --owners asfhjaf --filter &quot;Name=name,Values=UAT&quot; &quot;Name=tag-key,Values!=Delete&quot; --query 'Images[*].[ImageId,CreationDate]'
  </code></pre>