Last active
May 3, 2025 02:51
-
-
Save murarisumit/9b1314b4efe4f8f24e87 to your computer and use it in GitHub Desktop.
Adding record to route53.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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