cisco-open / terraform-provider-meraki

A Terraform Provider for Cisco Meraki
Mozilla Public License 2.0
16 stars 7 forks source link

Error using meraki_devices_appliance_uplinks_settings #25

Closed samspade21 closed 6 months ago

samspade21 commented 6 months ago

Prerequisites

(Note, the compatibility matrix link should go here: https://github.com/cisco-open/terraform-provider-meraki/?tab=readme-ov-file#compatibility-matrix)

Describe the bug When trying to create a resource type of meraki_devices_appliance_uplinks_settings, an error is thrown that the resource can only have an update context, not create.

Error: Resource DevicesApplianceUplinksSettings only have update context, not create.

Using this as an example:

resource "meraki_devices_appliance_uplinks_settings" "example" {
  serial = "XXXXXXX"
  interfaces = {
    wan1 = {
      enabled = true
      svis = {
        ipv4 = {
          address         = "9.10.11.10/16"
          assignment_mode = "static"
          gateway         = "13.14.15.16"
          nameservers = {
            addresses = ["1.2.3.4"]
          }
        }
      }
    }
    wan2 = {
      enabled = true
      svis = {
        ipv4 = {
          address         = "9.10.11.12/16"
          assignment_mode = "static"
          gateway         = "13.14.15.16"
          nameservers = {
            addresses = ["1.2.3.4"]
          }
        }
      }
    }
  }
}

Expected behavior The existing uplink port will be used, and not new resources are actually created - only updated.

Screenshots NA

Environment (please complete the following information):

samspade21 commented 6 months ago

This was a bug in our TF and not the provider.