Skip to content

Commit 659d939

Browse files
Support Post sart up script on runtime templates (#12929) (#902)
[upstream:0500297dde9a16e181d0e2228e06b835d72ad325] Signed-off-by: Modular Magician <[email protected]>
1 parent 17444df commit 659d939

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

colab_runtime_template_full/main.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,17 @@ resource "google_colab_runtime_template" "runtime-template" {
5353
encryption_spec {
5454
kms_key_name = "my-crypto-key-${local.name_suffix}"
5555
}
56+
57+
software_config {
58+
env {
59+
name = "TEST"
60+
value = 1
61+
}
62+
63+
post_startup_script_config {
64+
post_startup_script = "echo 'hello world'"
65+
post_startup_script_url = "gs://colab-enterprise-pss-secure/secure_pss.sh"
66+
post_startup_script_behavior = "RUN_ONCE"
67+
}
68+
}
5669
}

0 commit comments

Comments
 (0)