This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eo pipefail | |
## Allows for creation of "Basic" DNS records in a Route53 hosted zone | |
# Make sure all output is in json | |
export AWS_DEFAULT_OUTPUT=json | |
function main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script cleans up your EC2 instance before baking a new AMI. | |
# this works on Ubuntu (18+) | |
# Run the following command in a root shell: | |
# | |
# bash <(curl -s https://gist.githubusercontent.com/AstroTom/fb0f54d125d38574eae76f57c188c4f0/raw/ami-clean.sh) | |
function print_green { | |
echo -e "\e[32m${1}\e[0m" |