aws-inventory
aws-inventory copied to clipboard
empty namespaces still return values
Not a big issue, but I wonder if anyone has a quick solution for it. I am using this script to generate an inventory for documentation purposes (I save nicely formatted yaml files rather than jsons). I wish to achieve two things
- avoid adding empty sections as per below - is there a way to omit those?
ec2: []
ec2-ebs: []
ec2-egpu: []
ec2-eips: []
- only return specific fields from an inventory. e.g: for EvenBus, I only need 'Name', not a whole blob of 17 lines.
Kind regards Dawid