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

scaleway_iot_network does not accept region parameter #2773

Closed
mrohlof-protofy opened this issue Oct 15, 2024 · 0 comments · Fixed by #2776
Closed

scaleway_iot_network does not accept region parameter #2773

mrohlof-protofy opened this issue Oct 15, 2024 · 0 comments · Fixed by #2776
Assignees
Labels
enhancement iot IoT issues, bugs and feature requests

Comments

@mrohlof-protofy
Copy link

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

1.8.3

Affected Resource(s)

  • scaleway_iot_network

Terraform Configuration Files

resource "scaleway_iot_network" "iot_network" {
  region = "fr-par"
  name   = "rest-network-${terraform.workspace}"
  hub_id = scaleway_iot_hub.iot_hub.id
  type   = "rest"
}

Debug Output

│ Error: Unsupported argument

│ on main.tf line 148, in resource "scaleway_iot_network" "iot_network":
│ 148: region = "fr-par"

│ An argument named "region" is not expected here.

or, if region is left out but the project provider is nl-ams:

│ Error: scaleway-sdk-go: http error 501 Not Implemented: unknown service

│ with scaleway_iot_network.iot_network,
│ on main.tf line 147, in resource "scaleway_iot_network" "iot_network":
│ 147: resource "scaleway_iot_network" "iot_network" {

Expected Behavior

If my provider region is set to "nl-ams", I should still be able to create a scaleway_iot_network in region fr-par. Either through the network resource seeing in which region its hub is or through a region parameter.

Actual Behavior

If the Scaleway provider is set to region "nl-ams", there is no way to create a scaleway_iot_network resource, because:

The IoT Hub has to be in region fr-par. No problem, since it accepts a region parameter. All resources within that hub must be in fr-par, as well. Not a problem for scaleway_iot_route, since that also accepts a region parameter. BUT: scaleway_iot_network does not accept the region parameter, which means it always default to the provider - which is nl-ams in my case.

Steps to Reproduce

  1. Configure provider with region nl-ams
  2. Add scaleway_iot_hub with region fr-par
  3. Try to add scaleway_iot_network
@Codelax Codelax added enhancement iot IoT issues, bugs and feature requests labels Oct 16, 2024
@jremy42 jremy42 self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement iot IoT issues, bugs and feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants