Skip to content

Commit

Permalink
Include domain mapping (#1449)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashley Davies <[email protected]>
  • Loading branch information
ashdavies and ashdavies authored Jan 19, 2025
1 parent e4a6607 commit d645823
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
13 changes: 13 additions & 0 deletions terraform/modules/google/cloud-run-endpoint/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ resource "google_cloud_run_service" "main" {
}
}

resource "google_cloud_run_domain_mapping" "main" {
name = var.endpoint_name
location = google_cloud_run_service.main.location

metadata {
namespace = var.project
}

spec {
route_name = google_cloud_run_service.main.name
}
}

data "google_artifact_registry_docker_image" "main" {
depends_on = [null_resource.main]
location = var.location
Expand Down
10 changes: 0 additions & 10 deletions terraform/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
output "pool_name" {
description = "Workload Identity Pool name"
value = module.github-workload-identity.pool_name
}

output "provider_name" {
description = "Workload Identity Provider name"
value = module.github-workload-identity.provider_name
}

output "sa_email" {
description = "Google Service Account email"
value = module.github-service-account.email
Expand Down

0 comments on commit d645823

Please sign in to comment.