From 1b4c51fdef3086c904209de5cbf5253378862c40 Mon Sep 17 00:00:00 2001 From: Bhargav Chereddy Date: Fri, 10 Jan 2025 00:00:28 +0000 Subject: [PATCH] add runtime depends on in examples --- .../templates/terraform/examples/colab_runtime_basic.tf.tmpl | 5 +++++ mmv1/templates/terraform/examples/colab_runtime_full.tf.tmpl | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/mmv1/templates/terraform/examples/colab_runtime_basic.tf.tmpl b/mmv1/templates/terraform/examples/colab_runtime_basic.tf.tmpl index 87f3fd735ace..e190d7b16da5 100644 --- a/mmv1/templates/terraform/examples/colab_runtime_basic.tf.tmpl +++ b/mmv1/templates/terraform/examples/colab_runtime_basic.tf.tmpl @@ -27,4 +27,9 @@ resource "google_colab_runtime" "{{$.PrimaryResourceId}}" { display_name = "Runtime basic" runtime_user = "example@example.com" } + + depends_on = [ + google_project_iam_member.colab_enterprise_admin, + google_colab_runtime_template.my_template, + ] } diff --git a/mmv1/templates/terraform/examples/colab_runtime_full.tf.tmpl b/mmv1/templates/terraform/examples/colab_runtime_full.tf.tmpl index 7e065f2c3458..8c51aee66e12 100644 --- a/mmv1/templates/terraform/examples/colab_runtime_full.tf.tmpl +++ b/mmv1/templates/terraform/examples/colab_runtime_full.tf.tmpl @@ -75,5 +75,10 @@ resource "google_colab_runtime" "{{$.PrimaryResourceId}}" { k = "val" } } + + depends_on = [ + google_project_iam_member.colab_enterprise_admin, + google_colab_runtime_template.my_template + ] }