Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
Include TTL for records
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Jul 18, 2015
1 parent 39537d1 commit 9ec078e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions formulary/builders/route53.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def _add_alias_record(self, settings):
self._add_resource('route53-{0}-a'.format(settings['hostname']),
route53.Route53RecordSet(settings['domain_name'],
settings['hostname'], None,
alias.as_dict(), 'A'))
alias.as_dict(), 'A',
settings.get('ttl')))

def _add_instance_rr(self, settings, instances):
for instance in instances:
Expand All @@ -35,7 +36,8 @@ def _add_instance_rr(self, settings, instances):
self._add_resource('route53-{0}-a'.format(settings['hostname']),
route53.Route53RecordSet(settings['domain_name'],
settings['hostname'],
resources, None, 'A'))
resources, None, 'A',
settings.get('ttl')))

def _add_instance_srv(self, settings, instances):
for instance in instances:
Expand All @@ -53,4 +55,5 @@ def _add_instance_srv(self, settings, instances):
self._add_resource('route53-{0}-srv'.format(settings['hostname']),
route53.Route53RecordSet(settings['domain_name'],
hostname,
resources, None, 'SRV'))
resources, None, 'SRV',
settings.get('ttl')))

0 comments on commit 9ec078e

Please sign in to comment.