Created
May 30, 2022 22:03
-
-
Save bfrancom/c0f380b332ba03fe8e85cdb44f08d4e1 to your computer and use it in GitHub Desktop.
AWS CLI Get EC2 Info and Export to CSV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,State.Name,InstanceType'] |jq -r '.[][] | @csv' >>/tmp/ec2.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment