Skip to content
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

v5.00 data "cloudflare_zone" missing required zone_id parameter #4958

Open
3 tasks done
eidmantas opened this issue Jan 29, 2025 · 2 comments
Open
3 tasks done

v5.00 data "cloudflare_zone" missing required zone_id parameter #4958

eidmantas opened this issue Jan 29, 2025 · 2 comments
Labels
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. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log.

Comments

@eidmantas
Copy link

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

cloudflare/cloudflare v5.0.0
Terraform v1.10.4

Affected resource(s)

cloudflare_zone

Terraform configuration files

data "cloudflare_zone" "default" {
  filter = {
    name = "something"
  }
}

output "test" {
  value = data.cloudflare_zone.default
}

Link to debug output

https://gist.github.com/eidmantas/908eef21b5d93016db999a8757bcab19

Panic output

No response

Expected output

data cloudflare_zone.default to be initialised
or
zone_id (String) Identifier marked as non-optional

Actual output

13:40:36.510 STDERR terraform: │ Error: failed to make http request
13:40:36.510 STDERR terraform: │
13:40:36.510 STDERR terraform: │ with data.cloudflare_zone.default,
13:40:36.510 STDERR terraform: │ on records.tf line 1, in data "cloudflare_zone" "default":
13:40:36.511 STDERR terraform: │ 1: data "cloudflare_zone" "default" {
13:40:36.511 STDERR terraform: │
13:40:36.511 STDERR terraform: │ missing required zone_id parameter

Steps to reproduce

  1. Use https://registry.terraform.io/providers/cloudflare/cloudflare/5.0.0/docs/data-sources/zone
  2. Provide only filter.
  3. error: missing required zone_id parameter while_

Additional factoids

No response

References

No response

@eidmantas eidmantas 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 Jan 29, 2025
Copy link

Terraform debug log detected ✅

@github-actions github-actions bot added the triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. label Jan 29, 2025
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

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. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log.
Projects
None yet
Development

No branches or pull requests

1 participant