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

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'