Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
shell script to list public snapshots for an owner for all regions
OWNER='XXXXXXXXX'
echo $OWNER
for region in `aws ec2 describe-regions --output text | cut -f3`
do
echo -e "\nListing Snapshots for owner in region:'$region'..."
aws ec2 describe-snapshots --owner-ids=$OWNER --region $region
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment