From 93276d03d85d3a2d0ae5bf55a02fb2ede500a86d Mon Sep 17 00:00:00 2001 From: Julio Diez Date: Mon, 30 Jan 2023 16:34:52 +0100 Subject: [PATCH] Add custom domain output --- blueprints/serverless/cloud-run-explore/outputs.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/blueprints/serverless/cloud-run-explore/outputs.tf b/blueprints/serverless/cloud-run-explore/outputs.tf index d792a7e82..61131ad8e 100644 --- a/blueprints/serverless/cloud-run-explore/outputs.tf +++ b/blueprints/serverless/cloud-run-explore/outputs.tf @@ -7,3 +7,10 @@ output "load_balancer_ip" { description = "LB IP that forwards to Cloud Run service" value = var.glb_create ? module.glb[0].address : "none" } + +# Custom domain for the Load Balancer. I'd prefer getting the value from the +# SSL certificate but it is not exported as output +output "custom_domain" { + description = "Custom domain for the Load Balancer" + value = var.glb_create ? var.custom_domain : "none" +}