Skip to content

Automatically generated default RF profiles can't be managed by Terraform #195

@joekohlsdorf

Description

@joekohlsdorf

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions