terraform-azurerm-terraform-enterprise
terraform-azurerm-terraform-enterprise copied to clipboard
Module fails if/when dependencies do not exist yet.
Due to AzureRM provider bug or feature, the name of the resource is known before it is actually created. Therefore terraform cannot build the dependency tree appropriately and it does not wait for dependency to be created.
For example, a key vault data source fails if key vault does not exist yet, even though it is being created by the same plan.
In my opinion, the module should accept and use resource ID instead, which is know after resource creation and therefore allows terraform to build a working dependency tree
Totally agree with this as it would also allow the resources in the module to be created in a different RG than the networking pieces.