Install jq
wget https://github.com/jqlang/jq/releases/download/jq-1.7/jq-linux64 -O /usr/local/bin/jq
chmod +x /usr/local/bin/jq
Create LightsailFullAccessGroup IAM user following this instruction
$ aws configure
bash changeip.sh us-east-1
crontab -e
Then add the following:
# Rotate IP
5 9 * * * bash ~/changeip.sh us-east-1