2023-02-10 03:30:39 -08:00
|
|
|
/**
|
|
|
|
* Copyright 2023 Google LLC
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2023-02-10 03:46:34 -08:00
|
|
|
|
|
|
|
# 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" {
|
2023-02-10 05:13:56 -08:00
|
|
|
description = "Custom domain for the Load Balancer."
|
2023-02-10 03:46:34 -08:00
|
|
|
value = local.gclb_create ? var.custom_domain : "none"
|
|
|
|
}
|
|
|
|
|
2023-01-30 03:01:17 -08:00
|
|
|
output "default_URL" {
|
2023-02-10 05:13:56 -08:00
|
|
|
description = "Cloud Run service default URL."
|
2023-01-30 05:35:20 -08:00
|
|
|
value = module.cloud_run.service.status[0].url
|
2023-01-24 02:14:21 -08:00
|
|
|
}
|
2023-01-30 05:39:46 -08:00
|
|
|
|
|
|
|
output "load_balancer_ip" {
|
2023-02-10 05:13:56 -08:00
|
|
|
description = "LB IP that forwards to Cloud Run service."
|
2023-02-09 01:33:51 -08:00
|
|
|
value = local.gclb_create ? module.glb[0].address : "none"
|
2023-01-30 05:39:46 -08:00
|
|
|
}
|