diff --git a/octodns/provider/route53.py b/octodns/provider/route53.py index 89fb7a8..3c7b0ed 100644 --- a/octodns/provider/route53.py +++ b/octodns/provider/route53.py @@ -1395,6 +1395,8 @@ class Route53Provider(BaseProvider): self._really_apply(batch, zone_id) def _really_apply(self, batch, zone_id): + # Ensure this batch is ordered (deletes before creates etc.) + batch.sort(key=_mod_keyer) uuid = uuid4().hex batch = { 'Comment': 'Change: {}'.format(uuid),