I have my terraform configuration files claiming devices, creating a network and placing devices in network. I am working with an MX appliance and want to modify the default VLAN 1 using the meraki_appliance_vlan Resource function. My configurations will create VLANs that don’t already exist but cannot modify VLAN 1.
Below is the configuration I am trying to get to work.
#resource “meraki_appliance_vlan” “vlan_1” {
#network_id = meraki_network.terraform1.id # Replace with your actual network ID
#vlan_id = 1 # VLAN 1, already exists
#appliance_ip = “192.168.1.1” # Existing or updated appliance IP
#name = “Updated VLAN 1” # Update the VLAN name
#subnet = “192.168.1.0/24” # Update subnet as needed
#dhcp_handling = “Run a DHCP server” # Set the DHCP handling option
#dhcp_lease_time = “12 hours” # Update DHCP lease time
#ipv6_enabled = false # Enable or disable IPv6
#mandatory_dhcp_enabled = true # Update this as needed
#}
I want to modify vlan 1 but I get errors saying that the vlan is already created. What function should I use and how can I modify the existing VLAN 1