I'm trying to get all Elastic IPs that are not currently assigned to instances.
It's easy to get all of the Elastic IPs using this: aws ec2 describe-addresses
From here, it would be easy to filter out any results that do not have an"AssociationId"
. However, I'm not sure how to do that using --query
.
I know that the --query
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 AssociationId
. Any help?
Thanks.