Skip to content

scaleway_iot_network does not accept region parameter #2773

Closed
@mrohlof-protofy

Description

@mrohlof-protofy

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

Metadata

Metadata

Assignees

Labels

enhancementiotIoT issues, bugs and feature requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions