Skip to content

Commit

Permalink
updated aws_info_ec2.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Nov 22, 2024
1 parent f204102 commit 557fde9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aws/aws_info_ec2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ for ami_id in "${!ami_map[@]}"; do
s/\"$ami_id\"/\"$ami_name\"/g;"
done

timestamp "Getting list of EC2 instances"
# shellcheck disable=SC2016
json="$(
aws ec2 describe-instances \
Expand All @@ -103,6 +104,7 @@ json="$(
jq_debug_pipe_dump
)"

timestamp "Generating CSV output with AMI images IDs resolved to names"
jq -r '
.[][] |
[ .ID, .Name, .State, .InstanceType, .AMI, .Architecture, .PrivateDNS, .PublicDNS ] |
Expand Down

0 comments on commit 557fde9

Please sign in to comment.