From edb2f0c0cbb8abe7d9a0ee70c575d3720565ef11 Mon Sep 17 00:00:00 2001 From: Hugh Mooney Date: Tue, 15 Jun 2021 11:08:34 +0100 Subject: [PATCH] Backported fix for inventory generation --- bin/subcommands/awsh-inventory-report | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/subcommands/awsh-inventory-report b/bin/subcommands/awsh-inventory-report index 4daf245..29ba3e4 100755 --- a/bin/subcommands/awsh-inventory-report +++ b/bin/subcommands/awsh-inventory-report @@ -188,7 +188,7 @@ exec 4>&- # Iterate through each of the AWS Regions for the remaining known resource types -region_list="$(aws ec2 describe-regions --output=text | awk '{print $3}')" +region_list=$(aws ec2 describe-regions | jq -r '.Regions[] | .RegionName') current_region=$AWS_DEFAULT_REGION for region in $region_list; do