Skip to content

Commit a827c62

Browse files
authored
feat: Adding connection metadata for AlloyDB (#504)
1 parent bf9a224 commit a827c62

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
@@ -317,6 +317,11 @@ spec:
317317
version: ">= 0.4.0"
318318
spec:
319319
outputExpr: "{\"IP_ADDRESS_HTTP\": ip_address_http, \"IP_ADDRESS_HTTPS\": ip_address_https}"
320+
- source:
321+
source: github.com/GoogleCloudPlatform/terraform-google-alloy-db
322+
version: ">= 5.0.1"
323+
spec:
324+
outputExpr: "{\"ALLOYDB_INSTANCE_HOST\" : primary_instance_ip}"
320325
- name: service_account
321326
description: Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template#service_account.
322327
varType: |-
@@ -385,6 +390,11 @@ spec:
385390
version: ">= 0.1.0"
386391
spec:
387392
outputExpr: "[\"roles/datastore.user\"]"
393+
- source:
394+
source: github.com/GoogleCloudPlatform/terraform-google-alloy-db
395+
version: ">= 5.0.1"
396+
spec:
397+
outputExpr: "[\"roles/alloydb.admin\"]"
388398
- name: enable_shielded_vm
389399
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
390400
varType: bool

0 commit comments

Comments
 (0)