Skip to content

Commit 760c941

Browse files
authored
feat: Adding read instance ips in connection metadata (#505)
1 parent a339136 commit 760c941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/instance_template/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ spec:
321321
source: github.com/GoogleCloudPlatform/terraform-google-alloy-db
322322
version: ">= 5.0.1"
323323
spec:
324-
outputExpr: "{\"ALLOYDB_INSTANCE_HOST\" : primary_instance_ip}"
324+
outputExpr: "{\"ALLOYDB_INSTANCE_HOST\" : primary_instance_ip, \"ALLOYDB_READ_REPLICAS\": env_vars.ALLOYDB_READ_REPLICAS}"
325325
- name: service_account
326326
description: Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template#service_account.
327327
varType: |-

0 commit comments

Comments
 (0)