code-dumps/aws/aws-endpoint-inventory.sh

4 lines
232 B
Bash
Executable File

#!/bin/bash
aws ec2 describe-regions --query Regions[].RegionName --output text | tr '\t' '\n' | parallel \
aws ec2 --region {} describe-vpc-endpoints --query VpcEndpoints[].ServiceName --output text | tr '\t' '\n' | sort | uniq -c