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