route53_info module provides a facility for getting a list of Route 53 hosted zones. However, it will only get 100 at a time. (Setting
max_items to anything greater than 100 still only provides 100 items.) If the results are truncated,
IsTruncated is set to
true in the results, and a
NextMarker ID is provided that can then be used to make a request for the next batch of zones.
However, I don't see a way to loop in order to ensure that I get all of the zones. The only loop construct that seems to be able to look at the results of the task is
until, but it seems to only register the data that results from the last run, and it seems that it doesn't re-expand variables in its arguments, so there's no way to provide an updated
next_marker for each iteration.
The only way I see to "ensure" getting all of the zones is to know a maximum number of zones beforehand and just have an appropriate number of instances of the task listed out manually, registering the output of each one individually. Is there another way?