aws-inventory/aws-s3-inventory.sh
2024-04-19 14:09:45 +08:00

6 lines
145 B
Bash
Executable File

#!/bin/bash
# Generate inventory in all regions
echo "BucketName"
aws s3api list-buckets --query Buckets[].Name --output text | sed 's/\t/\n/g'