Skip to content

Commit 2834a83

Browse files
Copilotmarrobi
andauthored
Fix destroy ordering: wait_for_backup_container_ready must depend on file_share not vice versa
Agent-Logs-Url: https://github.com/microsoft/AzureTRE/sessions/9233b422-0f60-414c-af10-9fe74ed1f471 Co-authored-by: marrobi <17089773+marrobi@users.noreply.github.com>
1 parent ce441e0 commit 2834a83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/workspaces/base/terraform/storage.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ EOT
261261
}
262262

263263
depends_on = [
264-
azurerm_backup_container_storage_account.storage_account
264+
azurerm_backup_container_storage_account.storage_account,
265+
azurerm_backup_protected_file_share.file_share,
265266
]
266267
}
267268

@@ -277,6 +278,5 @@ resource "azurerm_backup_protected_file_share" "file_share" {
277278
azurerm_backup_container_storage_account.storage_account,
278279
azapi_resource.shared_storage,
279280
azurerm_private_endpoint.stgfilepe,
280-
terraform_data.wait_for_backup_container_ready
281281
]
282282
}

0 commit comments

Comments
 (0)