Hello terraform community,
I want to build a Multi Cloud setup using one module per Cloud Provider.
The user of the terraform script can decide which Cloud provider module he wants to use. I wanted to let the configure that via tf variables.
However if the module is deactivated (using count = 0) terraform still tries to load the provider and its credentials. Which is not working because the user don’t has set up credentials for it.
When using e.g.
terraform apply -target module.aws to restrict the apply to the needed module it is not loading the other providers…
My question is how to set up module using configuration variables to act the same way that -target does?