# outputs.tf defines outputs for the module. output "service" { description = "Webapp Cloud Run service resource" value = google_cloud_run_service.webapp } output "service_account" { description = "Service account which service runs as" value = google_service_account.webapp } output "domain_mapping_present" { description = "Flag indicating if a domain mapping is present for the webapp" value = local.domain_mapping_present } output "domain_mapping_resource_record" { description = <<EOI Resource record for domain mapping. If a domain mapping is configured the following keys will be set: type and rrdata. If no mapping is configured, the map will be empty. EOI value = local.domain_mapping_present ? { type = google_cloud_run_domain_mapping.webapp[0].status[0].resource_records[0].type rrdata = google_cloud_run_domain_mapping.webapp[0].status[0].resource_records[0].rrdata } : {} } output "domain_mapping_dns_name" { description = <<EOI DNS name (minus trailing dot) of webapp. Will be blank if no DNS name configured. EOI value = var.dns_name } output "static_egress_ip" { description = <<EOI The static egress IP assigned to this cloud run instance. Only populated if the variable `enable_static_egress_ip` is true. EOI value = var.enable_static_egress_ip ? google_compute_address.static-ip[0].address : "" }