title: How can I select all elastic IPs that are not assigned to an EC2 instance?
body: <p>I'm trying to get all Elastic IPs that are not currently assigned to instances.</p>
  
  <p>It's easy to get all of the Elastic IPs using this: <code>aws ec2 describe-addresses</code></p>
  
  <p>From here, it would be easy to filter out any results that do not have an<code>"AssociationId"</code>. However, I'm not sure how to do that using <code>--query</code>.</p>
  
  <p>I know that the <code>--query</code> option uses JMESPath to filter results, but I have no idea how to tell it to return me all results that do not have an <code>AssociationId</code>. Any help?</p>
  
  <p>Thanks.</p>