cf-terraforming
cf-terraforming copied to clipboard
25+ firewall_rules and filters
Confirmation
- [X] My issue isn't already found on the issue tracker.
- [X] I have replicated my issue using the latest version of the library and it is still present.
cf-terraforming version
cf-terraforming v0.2.0
Expected outcome
- I expected to have 27 firewall_rule resources outputted
- I expected to have 27 filters resources outputted
- I expected to have 27 firewall_rule import commands outputted
- I expected to have 27 filter import commands outputted
Actual outcome
- 24 firewall__rule resources where outputted
- 24 filter resources where outputted
- 25 firewall_rule import commands outputted
- 25 filter import commands where outputted
After running the imports I fixed the 25th resource's(that got imported) based on what it wanted to delete. But there where 2 firewall rules with missing corresponding filters and 2 filters that where not referenced in the firewall rules....
Seems to be related to the pagination limit of 25 for the api, but I don't see anything in the docs for this tool in how to resolve that.
Steps to reproduce
- have 27+ firewall_rules in cloudflare and try to import them
References
No response
This is something I'm looking to offload to cloudflare-go
instead as it will benefit all the consumers once it lands. See https://github.com/cloudflare/cloudflare-go/issues/619
Ahh that would explain it, was just starting to look into the go api to try and understand how it handled pagination but not familiar with go yet.
A similar problem when generating resources/imports custom hostnames. Only 50 records are generated.
+1 on the custom hostnames, trying to import 115 and only getting 50 back.
Same for cloudflare_account_member
resources: Only 20 are exported.
We have the same issue with only generating 25 firewal_rule and firewall_filter, is there any progress on this issue?
I am running into the same issue for cloudflare_firewall_rule