diff --git a/modules/cloud-run-v2/README.md b/modules/cloud-run-v2/README.md index 2e6144c2ce..4501ff24d9 100644 --- a/modules/cloud-run-v2/README.md +++ b/modules/cloud-run-v2/README.md @@ -465,7 +465,8 @@ module "cloud_run" { | [service_account_email](outputs.tf#L37) | Service account email. | | | [service_account_iam_email](outputs.tf#L42) | Service account email. | | | [service_name](outputs.tf#L50) | Cloud Run service name. | | -| [vpc_connector](outputs.tf#L55) | VPC connector resource if created. | | +| [service_uri](outputs.tf#L55) | Main URI in which the service is serving traffic. | | +| [vpc_connector](outputs.tf#L60) | VPC connector resource if created. | | ## Fixtures diff --git a/modules/cloud-run-v2/outputs.tf b/modules/cloud-run-v2/outputs.tf index f992a2d03e..4be653f83f 100644 --- a/modules/cloud-run-v2/outputs.tf +++ b/modules/cloud-run-v2/outputs.tf @@ -52,6 +52,11 @@ output "service_name" { value = var.create_job ? null : google_cloud_run_v2_service.service[0].name } +output "service_uri" { + description = "Main URI in which the service is serving traffic." + value = var.create_job ? null : google_cloud_run_v2_service.service[0].uri +} + output "vpc_connector" { description = "VPC connector resource if created." value = try(google_vpc_access_connector.connector[0].id, null)