equinix / terraform-equinix-fabric

Terraform Equinix Fabric Modules
https://registry.terraform.io/modules/equinix/fabric/equinix/latest
Apache License 2.0
0 stars 3 forks source link

Non root modules have provider configurations #144

Open cprivitere opened 1 month ago

cprivitere commented 1 month ago

The non-root example modules have provider configurations in them. This is not terraform best practice. This causes problems in the following way:

  1. You define one of the example modules in your project and it stands up a connection for you.
  2. You delete that module from your project and expect terraform to delete the connection for you.
  3. Terraform cannot delete the connection because it depends on a provider configuration that's inside the module instance you're deleting.
  4. The user is stuck and must manually remove the connection.