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

Incorrect attributes for data.cloudflare_zones #1941

Open
1 task
danihodovic opened this issue Feb 5, 2025 · 2 comments
Open
1 task

Incorrect attributes for data.cloudflare_zones #1941

danihodovic opened this issue Feb 5, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@danihodovic
Copy link

Language Server Version

v0.36.3

Terraform Version

v1.10.5 on Linux

Client Version

NVIM v0.10.3

Terraform Configuration

data "cloudflare_zones" "search" {
  name = "newlantern.ai"
}

Steps to Reproduce

Use the above code which is valid when performing a terraform apply, but invalid using the language server.

terraform/rad-associates/domains/main.tf|33-35 col 34-2 error| [Terraform] Too few blocks specified for "filter": At least 1 block(s) are expected for "filter" [E]
terraform/rad-associates/domains/main.tf|34 col 3-25 error| [Terraform] Unexpected attribute: An attribute named "name" is not expected here [E]

Expected Behavior

No linting errors

Actual Behavior

See above

Gist

No response

Workarounds

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@danihodovic danihodovic added the bug Something isn't working label Feb 5, 2025
@michaelfeinbier
Copy link

Which version of the cloudflare provider are you using? Cloudflare recently released version 5 of their provider with some major changes and it seems like the language server is somehow still using old version here

@danihodovic
Copy link
Author

$ terraform providers -v
Terraform v1.10.5
on linux_amd64
+ provider registry.terraform.io/cloudflare/cloudflare v5.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants