Open maestretti opened 4 years ago
Can you see look at the ip
resource at https://github.com/duo-labs/cloudmapper/blob/1e60e1fb0bf5ad71d8514c2f5a3a2696b130f4cc/shared/find_unused.py#L70?
Something like print(ip)
or print(json.dumps(ip, indent=2))
should be helpful.
I'll admit that command is barely used. It was a one off thing that a single client wanted.
ya 'won't fix' is a fair response, or maybe a test for the key and skip gracefully if it isn't there. Wasn't sure if AWS changed a name somewhere.
I'll fix it or accept a PR if you can identify the specific issue. It looks like maybe the ip
object doesn't have an AllocationId
in it. That's unexpected to me, so I'm not sure what the appropriate action should be in that case. One option is to just ignore it, but I'd prefer to have more info about why it wasn't there.
Looking at the ec2-describe-addresses
file the first two records are for Domain
objects which don't have the keys being looked for, the rest are AllocationID
not sure if this filter is skipping the Domain objects properly:
As I don't know pyjq
very.