aws-samples / aws-samples/aws-lambda-mirror-dns-function

Zones with more than 100 records not handled

オープン
#3 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
41
フォーク
29
PR マージ指標
30日以内にマージされた PR はありません

説明

my source zone has approx 300 records in it.
on the first run all the records were created in route53.
on the next run however some records were attempted to be created again

> Transferring zone example.com from server 1.2.3.4
> Getting VPC SOA serial from Route 53
> Comparing SOA serial 2017091200 with 2017091200
> Updating as CREATE for A record test TTL 300 in zone example.com with []
> An error occurred (InvalidChangeBatch) when calling the ChangeResourceRecordSets operation: Tried to create resource record set [name='test.example.com.', type='A'] but it already exists
> ERROR: Unable to update zone example.com

it appears that the software does not account for the fact that ListResourceRecords by default returns 100 records at a time.
see: http://docs.aws.amazon.com/Route53/latest/APIReference/API_ListResourceRecordSets.html

since only 100 records are fetched from route53, then remaining records are assumed missing and scheduled for creation. when the create is attempted it fails because the record already exists.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。