Skip to content

Instantly share code, notes, and snippets.

@murarisumit
Last active May 3, 2025 02:51
Show Gist options
  • Select an option

  • Save murarisumit/9b1314b4efe4f8f24e87 to your computer and use it in GitHub Desktop.

Select an option

Save murarisumit/9b1314b4efe4f8f24e87 to your computer and use it in GitHub Desktop.
Adding record to route53.
import boto
import sys, traceback
r53conn = boto.connect_route53(aws_access_key_id="xxxxxxxxxxxxxx",aws_secret_access_key="yyyyyyyyyy")
recordSets = r53conn.get_zone("yourdomain.in")
try:
recordSets.add_cname(rSet[0],rSet[1])
except Exception, e:
print "======"
print rSet[0] + " wasn't added to route53"
print "======"
print e.args[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment