Skip to content

Commit

Permalink
updated aws_ec2_ebs_volumes_unattached.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Nov 13, 2024
1 parent 64bdfb6 commit 77153e5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions aws/aws_ec2_ebs_volumes_unattached.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ echo >&2
# shellcheck disable=SC2016
aws ec2 describe-volumes \
--filters 'Name=status,Values=available' \
--query "Volumes[*].{
' VolumeID': VolumeId,
' VolumeType': VolumeType,
' Size': Size,
' State': State,
--query 'Volumes[*].{
" VolumeID": VolumeId,
" VolumeType": VolumeType,
" Size": Size,
" State": State,
AvailabilityZone: AvailabilityZone,
Name: Tags[?Key=='Name'].Value | [0],
Environment: Tags[?Key=='Environment'].Value | [0],
Name: Tags[?Key=="Name"].Value | [0],
Environment: Tags[?Key=="Environment"].Value | [0],
CreateTime: CreateTime
}" \
}' \
--output table

0 comments on commit 77153e5

Please sign in to comment.