ec2-security-groups-dumper
ec2-security-groups-dumper copied to clipboard
Fixes #23
I also found having the VpcId in the output useful, so I took the liberty to add it.
I appreciate this might be a breaking change if somebody is depending on the output of this tool.
I've pushed a minor tweak, the JSON output was incorrect.
I'm a bit confused about that AssertionError, what is the AWS API returning for VpcId
for you? I've tried it against a bunch of AWS accounts I have and all seem fine.
The only thing I can think of is maybe you have some Security Groups for the pre VPC era and the VpcId field is being returned as null
or something?
Yes, I have some old classic stuff around, and in this case, the vpc_id
is a NoneType
.
I'm not sure how you'd prefer this fixed, I've pushed a commit which works around the lack of the VpcId
field by defaulting it to an empty string. See line 316.