terraform-provider-scaleway
terraform-provider-scaleway copied to clipboard
Data source scaleway_cockpit_source does not allow to filter by region
trafficstars
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
v1.10.3
Affected Resource(s)
- scaleway_cockpit_source
Terraform Configuration Files
data "scaleway_cockpit_source" "logs" {
name = "Scaleway Logs"
project_id = scaleway_account_project.project.id
region = "fr-par"
}
Expected Behavior
Terraform should import the Scaleway managed logs data source for region fr-par. This exemple uses the same data source retrieving filters than in the exemple provided in the documentation.
Actual Behavior
Running terraform plan fails with the following error:
Error: Value for unconfigurable attribute
with data.scaleway_cockpit_source.logs
on datasource-loki.tf line 6, in data "scaleway_cockpit_source" "logs":
region = each.value.region
Can't configure a value for "region": its value will be decided automatically based on the result of applying this configuration.
Steps to Reproduce
terraform plan