ファイル名 : route53.sh ファイル場所 : /home/ec2-user/work/route53.sh #!/bin/bash DOMAIN_NAME="example.me" SUB_NAME="test01" IP_ADDRESS=`curl -s http://169.254.169.254/latest/meta-data/public-ipv4` HOSTED_ZONE_ID="ZONE-IDを入力" BATCH_JSON='{ "Changes": [ { "Action": "UPSERT", "ResourceRecordSet": { "Name": "'${SUB_NAME}'.'${DOMAIN_NAME}'", "Type": "A", "TTL" : 300, "ResourceRecords": [ { "Value": "'${IP_ADDRES