Skip to content

Commit 5793455

Browse files
authored
chore: add pubsub connection metadata (#483)
1 parent d412f71 commit 5793455

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/instance_template/metadata.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ spec:
287287
version: ">= 4.4"
288288
spec:
289289
outputExpr: "{\"SERVICE_ACCOUNT_EMAIL\" : email, \"SERVICE_ACCOUNT_IAM_EMAIL\" : iam_email}"
290+
- source:
291+
source: github.com/terraform-google-modules/terraform-google-pubsub
292+
version: ">= 7.0.0"
293+
spec:
294+
outputExpr: "{\"TOPIC_ID\": id}"
290295
- name: service_account
291296
description: Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template#service_account.
292297
varType: |-
@@ -330,6 +335,11 @@ spec:
330335
version: ">= 17.1.0"
331336
spec:
332337
outputExpr: "[\"roles/aiplatform.user\"]"
338+
- source:
339+
source: github.com/terraform-google-modules/terraform-google-pubsub
340+
version: ">= 7.0.0"
341+
spec:
342+
outputExpr: "[\"roles/pubsub.publisher\", \"roles/pubsub.subscriber\"]"
333343
- name: enable_shielded_vm
334344
description: Whether to enable the Shielded VM configuration on the instance. Note that the instance image must support Shielded VMs. See https://cloud.google.com/compute/docs/images
335345
varType: bool

0 commit comments

Comments
 (0)