Note that there are some explanatory texts on larger screens.

plurals
  1. POAttempting to update Amazon Route53 using a script, but domain is not being updated
    primarykey
    data
    text
    <p>I have several Amazon EC2 instances, running Ubuntu 10.04, with which I'd like to use Amazon's Route53. I setup a script as described in Shlomo Swidler's <a href="http://shlomoswidler.com/2010/12/using-aws-route-53-to-keep-track-of-ec2-instances.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3a%20CloudDeveloperTips%20%28Cloud%20Developer%20Tips%20by%20Shlomo%20Swidler%29&amp;utm_content=Twitter" rel="nofollow">article</a>, but I'm still missing something.</p> <p>When the script runs, it doesn't return any output, which I initially assumed meant it ran correctly. However, when I check the DNS records using <a href="https://myr53dns.com" rel="nofollow">MyR53DNS</a>, there are no entries for my instances. Here's my script:</p> <pre><code>#!/bin/tcsh -f set root=`dirname $0` setenv EC2_HOME /usr/lib/ec2-api-tools setenv EC2_CERT /etc/cron.route53/ec2_x509_cert.pem setenv EC2_PRIVATE_KEY /etc/cron.route53/ec2_x509_private.pem setenv AWS_ACCESS_KEY_ID myaccesskeyid setenv AWS_SECRET_ACCESS_KEY myaccesskey /usr/bin/ec2-describe-instances | \ perl -ne '/^INSTANCE\s+(i-\S+).*?(\S+\.amazonaws\.com)/ \ and do { $dns = $2; print "$1 $dns\n" }; /^TAG.+\sShortName\s+(\S+)/ \ and print "$1 $dns\n"' | \ perl -ane 'print "$F[0] CNAME $F[1] --replace\n"' | \ xargs -n 4 /etc/cron.route53/cli53/cli53.py \ rrcreate -x 60 mydomain.com </code></pre> <p>Does anyone see a problem with this script? If its not the script, what else could be preventing my Route53 domain from being updated?</p> <p>I am using the Security Groups to IP-restrict the instances. I've tried opening port 53, but that didn't seem to have an effect. Is there another port that Route53 uses?</p> <p>I'd appreciate any help or guidance the StackOverflow community can offer. Let me know if you need any further info.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload