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

Unable to use zone argument on data.scaleway_lb_ip #2802

Closed
al26p opened this issue Nov 13, 2024 · 0 comments · Fixed by #2803
Closed

Unable to use zone argument on data.scaleway_lb_ip #2802

al26p opened this issue Nov 13, 2024 · 0 comments · Fixed by #2803

Comments

@al26p
Copy link
Contributor

al26p commented Nov 13, 2024

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

Terraform Version

Terraform v1.9.8

Affected Resource(s)

  • data.scaleway_lb_ip

Terraform Configuration Files

data "scaleway_lb_ip" "this" {
  ip_address = "123.0.0.1"
  zone       = "fr-par-2"
}

Expected Behavior

We should be able to set the zone for the data to query a lb_ip in a different zone than the default provider as stated in the documentation

Actual Behavior

Zone is only an attribute and not an argument therefore we can only query lb_ip in the default provider zone.

╷
│ Error: Value for unconfigurable attribute
│ 
│   with data.scaleway_lb_ip.this,
│   on example.tf line 37, in data "scaleway_lb_ip" "this":
│   37:   zone       = "fr-par-2"
│ 
│ Can't configure a value for "zone": its value will be decided automatically based on the result of applying this configuration.
╵

Steps to Reproduce

  1. terraform apply

Important Factoids

References

I made a fix, you will find it here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant