The non-root example modules have provider configurations in them. This is not terraform best practice. This causes problems in the following way:
- You define one of the example modules in your project and it stands up a connection for you.
- You delete that module from your project and expect terraform to delete the connection for you.
- Terraform cannot delete the connection because it depends on a provider configuration that's inside the module instance you're deleting.
- The user is stuck and must manually remove the connection.