Skip to content

Instantly share code, notes, and snippets.

@inhumantsar
inhumantsar / update-route53.sh
Last active July 22, 2021 22:16 — forked from phybros/update-route53.sh
Update Amazon Route 53 from Bash
#!/bin/bash
ZONEID='' # Hosted Zone ID e.g. BJBK35SKMM9OE
RECORDSET='' # The CNAME you want to update e.g. hello.example.com
TTL=300 # The Time-To-Live of this recordset
TYPE='A' # Change to AAAA if using an IPv6 address
COMMENT="Auto updating @ `date`"
IP=`curl -ss https://icanhazip.com/` # Get the external IP address
LOGPATH='/var/log'
#!/bin/bash
if ! which wget > /dev/null; then
yum install -y wget
fi
export DOCKER_VERSION=1.3.0
pushd /tmp
if [ ! -f /usr/bin/docker ]; then