From 71ebe6321b241501e40f0908ce84daf7e918ac8d Mon Sep 17 00:00:00 2001 From: Juho-Mikko Pellinen Date: Wed, 15 Apr 2015 13:43:00 +0300 Subject: [PATCH] Add support for specifying unique hosted zone identifier --- cloud/amazon/route53.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cloud/amazon/route53.py b/cloud/amazon/route53.py index 30557a2212a..8dd781ffdf2 100644 --- a/cloud/amazon/route53.py +++ b/cloud/amazon/route53.py @@ -212,6 +212,17 @@ EXAMPLES = ''' ttl: "7200" value: "::1" +# Add an AAAA record with Hosted Zone ID. Note that because there are colons in the value +# that the entire parameter list must be quoted: +- route53: + command: "create" + zone: "foo.com" + hostes_zone_id: "Z2AABBCCDDEEFF" + record: "localhost.foo.com" + type: "AAAA" + ttl: "7200" + value: "::1" + # Use a routing policy to distribute traffic: - route53: command: "create" @@ -374,6 +385,8 @@ def main(): record['ttl'] = rset.ttl record['value'] = ','.join(sorted(rset.resource_records)) record['values'] = sorted(rset.resource_records) + if hosted_zone_id_in: + record['hosted_zone_id'] = hosted_zone_id_in record['identifier'] = rset.identifier record['weight'] = rset.weight record['region'] = rset.region