Paginate Route53 ListHostedZones and DigitalOcean Domains.Records #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "followup/pr-a-pagination"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Both providers previously returned only the first page of results.
With >100 zones (Route53) or >200 records on an apex (DigitalOcean)
the apex/record we needed could sit on a later page, leading to silent
"not found" or — worse on DigitalOcean — duplicate-create attempts when
an existing record was missed.
Route53 uses NewListHostedZonesPaginator. DigitalOcean walks pages via
the response Links until IsLastPage(); early-returns on first match
keep the steady-state cost at one round-trip when the record is on
page one. Adds a DO test that returns the matching record only on
page 2 to verify the page-walking actually fires.
Precondition for the upcoming ownership-tagging work: full-fidelity
record discovery must come first.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com