I am using the Amazon Cli tools to write an ec2 audit script.I want to fetch the tags like name, owner, cost centre from the ec2-describe-instances.
I am using this command :
ec2-describe-instances | grep -i "tag" | grep -i -e "name" -e "owner" -e "cost.centre"
please help