scripting - Categorize the output of ec2-describe-images or ec2-describe-instances -
scripting - Categorize the output of ec2-describe-images or ec2-describe-instances -
is there command/tool/script categorize bulky output of ec2-describe-images
or ec2-describe-instances
.
i have list of around 100 servers each , every detail. want categorize them under suitable headings - reservation
, instance
, blockdevice
, tag
(whatever category available on output).
did sorted? if not...
run ec2-describe-images alternative --headers give categories
ec2-describe-images --private-key ~/private.key --cert ~/my.crt --region us-west-1 --headers
if want fields pipe output of above through linux command cut picking fields (columns) after. want imageid, name , architecture these fields 2,3 , 8 of output above. example.
ec2-describe-images --private-key ~/private.key --cert ~/my.crt --region us-west-1 --headers | cutting -f2,3,8 -s
doing same ec2-describe-instances similar.
scripting data-processing
Comments
Post a Comment