I am trying to get all Elastic IPs that are not currently assigned to instances.
It is easy to get all Elastic IPs using this: aws ec2 describe-addresses
From here it will be easy to filter out any results that do not have an "AssociationId" . However, I am not sure how to do this using --query .
I know that the --query parameter uses JMESPath to filter the results, but I donβt know how to tell it to return me all the results that do not have AssociationId . Any help?
Thanks.
source share