aws-inventory/aws-s3-inventory.sh

6 lines
145 B
Bash
Raw Normal View History

2024-04-19 14:09:45 +08:00
#!/bin/bash
# Generate inventory in all regions
echo "BucketName"
aws s3api list-buckets --query Buckets[].Name --output text | sed 's/\t/\n/g'