diff options
-rwxr-xr-x | update.sh | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -33,19 +33,22 @@ if [ "$config_ip" != "$actual_ip" ]; then cat <<EOF > $RECORD_CHANGE_JSON { "Changes": [ - "Action": "UPSERT", - "ResourceRecordSet": { - "Name": "$DOMAIN", - "Type": "A", - "TTL": 300, - "ResourceRecords": [ - "Value": "$actual_ip" - ] + { + "Action": "UPSERT", + "ResourceRecordSet": { + "Name": "$DOMAIN", + "Type": "A", + "TTL": 300, + "ResourceRecords": [ + "Value": "$actual_ip" + ] + } } ] } EOF - aws route53 change-resource-record-sets --hosted-zone-id $HOSTED_ZONE_ID \ + aws route53 change-resource-record-sets \ + --hosted-zone-id $HOSTED_ZONE_ID \ --change-batch $RECORD_CHANGE_JSON else |