terraform-azurerm-terraform-enterprise icon indicating copy to clipboard operation
terraform-azurerm-terraform-enterprise copied to clipboard

Module fails if/when dependencies do not exist yet.

Open alex-goncharov opened this issue 5 years ago • 1 comments

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

alex-goncharov avatar Nov 14 '19 09:11 alex-goncharov

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.

straubt1 avatar Nov 14 '19 14:11 straubt1