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