Skip to content

Commit 227a02e

Browse files
authored
chore: Adding connection metadata for AlloyDB (#344)
Signed-off-by: Jahnavi Malhotra <jahnaviii@google.com>
1 parent eae7d7b commit 227a02e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

modules/v2/metadata.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ spec:
213213
spec:
214214
outputExpr: "{\"FIRESTORE_DATABASE_ID\": database_id}"
215215
inputPath: env_vars
216+
- source:
217+
source: https://github.com/GoogleCloudPlatform/terraform-google-alloy-db
218+
version: ">= 5.0.1"
219+
spec:
220+
outputExpr: "{\"ALLOYDB_INSTANCE_HOST\" : primary_instance_ip}"
221+
inputPath: env_vars
216222
- name: create_service_account
217223
description: Create a new service account for cloud run service
218224
varType: bool
@@ -277,6 +283,11 @@ spec:
277283
version: ">= 0.1.0"
278284
spec:
279285
outputExpr: "[\"roles/datastore.user\"]"
286+
- source:
287+
source: https://github.com/GoogleCloudPlatform/terraform-google-alloy-db
288+
version: ">= 5.0.1"
289+
spec:
290+
outputExpr: "[\"roles/alloydb.admin\"]"
280291
- name: ingress
281292
description: Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
282293
varType: string

0 commit comments

Comments
 (0)