Skip to content

Cloudflare provider 5.3.0 documentation says account_id is required parameter but does not support it on cloudflare_account_api_token_permission_groups_list data lookup #5506

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

Open
3 tasks done
anordby opened this issue Apr 14, 2025 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. version/5 Categorizes issue or PR as related to version 5 of the provider.

Comments

@anordby
Copy link

anordby commented Apr 14, 2025

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

Terraform version 1.11.2, Cloudflare provider version 5.3.0.

Docs says account_id is required parameter for cloudflare_account_api_token_permission_groups_list: https://registry.terraform.io/providers/cloudflare/cloudflare/5.3.0/docs/data-sources/account_api_token_permission_groups_list

Affected resource(s)

cloudflare_account_api_token_permission_groups_list

Terraform configuration files

data "cloudflare_api_token_permission_groups_list" "moller" {
  account_id = local.account_ids.moller
}

Link to debug output

https://gist.github.com/anordby/a01b37bee6da9e083ff1166189487275

Panic output

No response

Expected output

No error

Actual output

Error: Unsupported argument
on module/zone/terraform_cloud.tf line 181, in data "cloudflare_api_token_permission_groups_list" "moller":
account_id = local.account_ids.moller
An argument named "account_id" is not expected here.

Steps to reproduce

Set account_id on data.cloudflare_account_api_token_permission_groups_list with Cloudflare provider version 5.3.0

Additional factoids

No response

References

No response

@anordby anordby added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 14, 2025
@jhutchings1 jhutchings1 added version/5 Categorizes issue or PR as related to version 5 of the provider. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 14, 2025
@jhutchings1
Copy link
Collaborator

I've assigned this to our team internally to take a look.

@armantur
Copy link

The title and the description state that cloudflare_account_api_token_permission_groups_list has a problem, but the example uses cloudflare_api_token_permission_groups_list, which shouldn't support account_id parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. version/5 Categorizes issue or PR as related to version 5 of the provider.
Projects
None yet
Development

No branches or pull requests

4 participants
@anordby @jhutchings1 @armantur and others