Skip to content

Commit 4217fb6

Browse files
committed
Add Apphub URI output to Redis
1 parent 09f3894 commit 4217fb6

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

metadata.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ spec:
150150
rdb_snapshot_period = string
151151
})
152152
outputs:
153+
- name: apphub_service_uri
154+
description: Service URI in CAIS style to be used by Apphub.
155+
type:
156+
- object
157+
- service_id: string
158+
service_uri: string
153159
- name: auth_string
154160
description: AUTH String set on the instance. This field will only be populated if auth_enabled is true.
155161
type: string

outputs.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,11 @@ output "env_vars" {
6868
"REDIS_PORT" : tostring(google_redis_instance.default.port)
6969
}
7070
}
71+
72+
output "apphub_service_uri" {
73+
value = {
74+
service_uri = "//memorystore.googleapis.com/${google_redis_instance.default.id}"
75+
service_id = google_redis_instance.default.id
76+
}
77+
description = "Service URI in CAIS style to be used by Apphub."
78+
}

terraform.tfvars

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name = "jieyutian-test-redis-0"
2+
project_id = "jieyutian-redis-0"
3+
region = "us-central1"
4+
authorized_network = "projects/jieyutian-redis-0/global/networks/jieyu-redis"

0 commit comments

Comments
 (0)