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

4 lines
232 B
Bash
Raw Normal View History

2024-02-22 15:37:33 +08:00
#!/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