Skip to content

Instantly share code, notes, and snippets.

  • Save dienncrelipa/dead2c90ac019f985cd69025cf13ed99 to your computer and use it in GitHub Desktop.
Save dienncrelipa/dead2c90ac019f985cd69025cf13ed99 to your computer and use it in GitHub Desktop.
aws-cli-report
for region in `aws ec2 describe-regions --output text | cut -f3`
do
aws ec2 describe-instances --region $region | jq '.Reservations[] | ( .Instances[] | {state: .State.Name, tag: .Tags[0].Value, name: .KeyName, type: .InstanceType, key: .KeyName})'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment