Skip to content

CLD-559: paginate list_hosted_zones in snapshot list Lambda#17

Open
johnnally wants to merge 1 commit into
mainfrom
CLD-559/add_pagination_to_list_hosted_zones
Open

CLD-559: paginate list_hosted_zones in snapshot list Lambda#17
johnnally wants to merge 1 commit into
mainfrom
CLD-559/add_pagination_to_list_hosted_zones

Conversation

@johnnally

Copy link
Copy Markdown

Accounts with more than 100 hosted zones were only having the first 100 returned when a tagged zone triggered a single-zone snapshot. If the new zone was not in that first page, the filter found no match and silently fell through to snapshot all 100 zones instead — causing unrelated zones to be snapshotted and the intended zone to never sync to NS1.

Fixed by replacing the single list_hosted_zones() call with a paginator that collects all zones before filtering. Also hardened the filter to raise explicitly if the target zone is not found, rather than falling through silently.

Accounts with more than 100 hosted zones were only having the first 100
returned when a tagged zone triggered a single-zone snapshot. If the new
zone was not in that first page, the filter found no match and silently
fell through to snapshot all 100 zones instead — causing unrelated zones
to be snapshotted and the intended zone to never sync to NS1.

Fixed by replacing the single list_hosted_zones() call with a paginator
that collects all zones before filtering. Also hardened the filter to
raise explicitly if the target zone is not found, rather than falling
through silently.
@johnnally johnnally self-assigned this Jul 24, 2026
@johnnally
johnnally requested a review from cbertinato July 24, 2026 14:33
@johnnally
johnnally marked this pull request as ready for review July 24, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant