Skip to content

Instantly share code, notes, and snippets.

@Kevin-Manson
Kevin-Manson / aws-s3-get-bucket-lifecycles.sh
Created May 2, 2018 14:07 — forked from Dunedan/aws-s3-get-bucket-lifecycles.sh
Small bash script to get the lifecycle transitions of all buckets in an AWS account.
#!/bin/bash
# Licensed under CC0 <https://creativecommons.org/publicdomain/zero/1.0/>
AWS_PROFILE="default"
BUCKETS=$(aws --profile $AWS_PROFILE s3api list-buckets --query 'Buckets[*].Name' --output text)
echo -e "bucket name\tstatus of the transition\tprefix the transition applies to\tdays after which the transition applies\tto storage class\tdelete after days\tdescription"
for bucket in $BUCKETS; do
@Kevin-Manson
Kevin-Manson / 0_reuse_code.js
Created June 15, 2016 17:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console