From 2b03e20eccb9e15b6fe7c2822518abe6c33b4ab0 Mon Sep 17 00:00:00 2001 From: x p k Date: Mon, 29 Nov 2021 16:33:17 +0800 Subject: [PATCH] UPD: adding iam roles --- aws/aws-inventory.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aws/aws-inventory.sh b/aws/aws-inventory.sh index 7261516..e6fe815 100755 --- a/aws/aws-inventory.sh +++ b/aws/aws-inventory.sh @@ -28,3 +28,6 @@ aws eks list-clusters | jq '.[][]' | awk -F/ '{print $NF}' | nl echo "# CloudFront" aws cloudfront list-distributions --query 'DistributionList.Items[*].[DomainName]' --output text | nl + +echo "# IAM roles" +aws iam list-roles | jq -cr '.Roles[] | .RoleName' | grep -v AWSServiceRoleFor | nl