When a new network is created, Meraki automatically creates two Wireless RF profiles: Basic Indoor Profile, Basic Outdoor Profile
These profiles can be modified from the Dashboard UI but they can't be managed from the Terraform provider.
It might be possible to manually import these but this workaround is not viable for the following reasons:
- Automatically created profiles can't be deleted. If I
terraform import them then I also have to terraform state rm them if I want to terraform destroy the whole network.
- With manual
terraform import it is not possible create multiple networks in one terraform apply
Why do I need this if I could just create a new default profile?
If I set is_indoor_default or is_outdoor_default to true on a new meraki_wireless_rf_profile then there is no way to terraform destroy this resource.
The API returns the Cannot delete a default profile. error.
I don't see how this second problem could be resolved from the provider side without changing the API.
Changing the default profile should be a separate API endpoint and it should automatically revert to the automatically generated undeletable profiles when unsetting it.
However, this would not resolve all problems because APs have to be reassigned to the new default, the profile can't be deleted if APs still have the profile assigned to them. And Terraform doesn't necessarily have to manage this assignment, APs get assigned the default profile when they are added to the network. The Dashboard UI automatically reassigns all APs when modifying the default profile but the API does not.
When a new network is created, Meraki automatically creates two Wireless RF profiles:
Basic Indoor Profile,Basic Outdoor ProfileThese profiles can be modified from the Dashboard UI but they can't be managed from the Terraform provider.
It might be possible to manually import these but this workaround is not viable for the following reasons:
terraform importthem then I also have toterraform state rmthem if I want toterraform destroythe whole network.terraform importit is not possible create multiple networks in oneterraform applyWhy do I need this if I could just create a new default profile?
If I set
is_indoor_defaultoris_outdoor_defaulttotrueon a newmeraki_wireless_rf_profilethen there is no way toterraform destroythis resource.The API returns the
Cannot delete a default profile.error.I don't see how this second problem could be resolved from the provider side without changing the API.
Changing the default profile should be a separate API endpoint and it should automatically revert to the automatically generated undeletable profiles when unsetting it.
However, this would not resolve all problems because APs have to be reassigned to the new default, the profile can't be deleted if APs still have the profile assigned to them. And Terraform doesn't necessarily have to manage this assignment, APs get assigned the default profile when they are added to the network. The Dashboard UI automatically reassigns all APs when modifying the default profile but the API does not.