Add support for specifying unique hosted zone identifier

This commit is contained in:
Juho-Mikko Pellinen 2015-04-15 13:43:00 +03:00
parent 110f618487
commit 71ebe6321b

View file

@ -212,6 +212,17 @@ EXAMPLES = '''
ttl: "7200" ttl: "7200"
value: "::1" 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: # Use a routing policy to distribute traffic:
- route53: - route53:
command: "create" command: "create"
@ -374,6 +385,8 @@ def main():
record['ttl'] = rset.ttl record['ttl'] = rset.ttl
record['value'] = ','.join(sorted(rset.resource_records)) record['value'] = ','.join(sorted(rset.resource_records))
record['values'] = 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['identifier'] = rset.identifier
record['weight'] = rset.weight record['weight'] = rset.weight
record['region'] = rset.region record['region'] = rset.region