Commit ad5a3fd
committed
Paginate ListHostedZones when listing hosted zones
listHostedZones called ListHostedZones once with no pagination. The AWS
API returns at most 100 zones per page, so accounts with more than 100
hosted zones silently dropped zones beyond the first page. GetHostedZoneID
then reported "no hosted zone found" for valid domains whose parent zone
landed on a later page.
Loop over pages using IsTruncated/NextMarker until all zones are listed.
Fixes #4832
Signed-off-by: Shashank Varma <324153016+shashankvarma499@users.noreply.github.com>1 parent ff98381 commit ad5a3fd
1 file changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
96 | 107 | | |
97 | 108 | | |
98 | | - | |
99 | | - | |
| 109 | + | |
| 110 | + | |
100 | 111 | | |
0 commit comments