Skip to content

Commit d0350e9

Browse files
authored
IAM for Colab runtime template (#12742)
1 parent f26eca6 commit d0350e9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

mmv1/products/colab/RuntimeTemplate.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ async:
3131
type: 'OpAsync'
3232
operation:
3333
full_url: 'https://{{location}}-aiplatform.googleapis.com/v1/{{op_id}}'
34+
iam_policy:
35+
parent_resource_attribute: 'runtime_template'
36+
method_name_separator: ':'
37+
fetch_iam_policy_verb: 'POST'
38+
example_config_body: 'templates/terraform/iam/example_config_body/colab_runtime_template.tf.tmpl'
39+
import_format:
40+
- 'projects/{{project}}/locations/{{location}}/notebookRuntimeTemplates/{{runtime_template}}'
41+
- '{{runtime_template}}'
3442
custom_code:
3543
post_create: 'templates/terraform/post_create/colab_runtime_template.tmpl'
3644
examples:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
project = google_colab_runtime_template.runtime-template.project
3+
location = google_colab_runtime_template.runtime-template.location
4+
runtime_template = google_colab_runtime_template.runtime-template.name

0 commit comments

Comments
 (0)