Skip to content

Unable to use zone argument on data.scaleway_lb_ip #2802

@al26p

Description

@al26p

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions