Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sugar-cat7 committed Oct 13, 2024
1 parent 8d77726 commit db67010
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deployment/terraform/blue/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module "cloud_scheduler_job" {
{
name = "job1"
schedule = "*/5 * * * *"
target_url = "${module.cloud_run_service.url}/ping"
target_url = "${module.cloud_run_service.cloud_run_service_url}/ping"
headers = {
"Content-Type" = "application/json"
}
Expand Down
2 changes: 1 addition & 1 deletion deployment/terraform/modules/cloud_run/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "google_cloud_run_v2_service" "vspo_portal_cloud_run_v2_service" {
resource "google_cloud_run_v2_service" "vspo_portal_cron" {
name = local.cloud_run_v2_service.name
location = local.cloud_run_v2_service.location
ingress = "INGRESS_TRAFFIC_INTERNAL_ONLY"
Expand Down
4 changes: 2 additions & 2 deletions deployment/terraform/modules/cloud_run/output.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output "cloud_run_service_url" {
value = "https://${google_cloud_run_v2_service.vspo_portal_cloud_run_v2_service.location}-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/${local.project}/jobs/${google_cloud_run_v2_service.vspo_portal_cloud_run_v2_service.name}:run"
}
value = google_cloud_run_v2_service.vspo_portal_cron.uri
}

0 comments on commit db67010

Please sign in to comment.