3

These are hacks (understandably as you couldn't explicitly do this in Terraform < 0.13). Now however, with 0.13, we have depends_on for modules: https://github.com/hashicorp/terraform/blob/v0.13/CHANGELOG.md#0130-august-10-2020


2

Terraform is idempotent so will only change what needs to be changed. So after applying your existing plan, if you add more modules or resources and run another plan and apply, it will add the new resources not the whole infrastructure. Terraform import is used when you want to start managing a resource created outside your Terraform code for example created ...


1

If I have read this correctly you are trying to target different clusters with your provider so you can then use a helm_release. You need to have distinct providers for each cluster and differentiate them with an alias so. provider "helm" { kubernetes { host = "https://my_endpoint1" token = "provider.access_token1&...


1

The provider documentation you quoted here seems to have a mistake. It talks about using the two providers together in the same module but it seems like it really means in the same configuration. The problem arises because Terraform needs to configure a provider in order to plan with it, and so everything inside a provider "kubernetes" block must ...


1

I believe you should be able to reference the namespace name like so: namespace_name = azurerm_eventhub_namespace.eventhub[0].name However, if the namespace_name field is a required parameter on the resources you are passing it to, you might run into other issues while you are trying to set enabled to false, as the resources depend on the output of the ...


1

You might be able to do something with the local-exec Provisioner to push the information out to an external script or file which you could monitor separately during the run. The issue you might encounter is the run order, HCL isn't processed top to bottom like a "traditional" programming language, it works out a dependency tree for the resources ...


Only top voted, non community-wiki answers of a minimum length are eligible