-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloudflare_account_roles capped at 50 but 51 now exist - go SDK issue? #2768
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
I don't see a good reason to bother with a debug log here since we can see what the issue is, but let me know if it's still required to get this fixed. |
I have the same issue, also having the data "cloudflare_account_roles" "account_roles" {
account_id = "XXX"
}
output "debug" {
value = sort([ for role in data.cloudflare_account_roles.account_roles.roles : role.name ])
} returns
whereas the curl to the API returns it, and indeed, |
Same issue here. Hoping this can be resolved soon as this is more or less blocking us from managing cloudflare with terraform. |
There is a linked PR in the go library that fixes this. The team will review and merge which should fix this |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
this issue is still present why was it closed off as completed? |
The fix will be in the next release slated for this week |
This functionality has been released in v4.16.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Confirmation
Terraform and Cloudflare provider version
terraform -v
Terraform v1.5.5
on darwin_amd64
Affected resource(s)
data.cloudflare_account_roles
Terraform configuration files
Link to debug output
n/a
Panic output
No response
Expected output
Clean plan, this code is not new
Actual output
Steps to reproduce
Try to reference the Administrator role in this datasource. It is no longer returned because it's the 51st role returned by the API.
Additional factoids
Here's the output from pulling the roles from the api manually.
curl --request GET --url 'https://api.cloudflare.com/client/v4/accounts/accountID/roles?per_page=100
References
Seems like this is just a simple fix in the
cloudflare-go
sdk but I didn't have enough debug info to raise an issue or PR over there directly and the version will have to be bumped here if it's fixed there anyway.https://github.com/cloudflare/cloudflare-go/blob/master/account_roles.go#L47
The text was updated successfully, but these errors were encountered: