Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Aug 20, 2024
1 parent ab8c657 commit 3db7706
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deployment/live/gcp/example-gcp/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ terraform {

locals {
env = path_relative_to_include()
project_id = get_env("GOOGLE_PROJECT", "trillian-tessera")
location = get_env("GOOGLE_REGION", "us-central1")
project_id = get_env("GOOGLE_PROJECT", "trillian-tessera")
location = get_env("GOOGLE_REGION", "us-central1")
base_name = get_env("TESSERA_BASE_NAME", "${local.env}-example-gcp")
}

Expand Down
11 changes: 5 additions & 6 deletions deployment/modules/gcp/example-gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ resource "google_project_iam_member" "iam_service_agent" {
member = "serviceAccount:${google_service_account.cloudrun_service_account.email}"
}

locals {
spanner_db_full = "projects/${var.project_id}/instances/${module.gcs.log_spanner_instance.name}/databases/${module.gcs.log_spanner_db.name}"
}

resource "google_cloud_run_v2_service" "default" {
name = "example-service-${var.env}"
location = var.location
Expand All @@ -95,7 +99,7 @@ resource "google_cloud_run_v2_service" "default" {
"--logtostderr",
"--v=1",
"--bucket=${module.gcs.log_bucket.id}",
"--spanner=projects/${var.project_id}/instances/${module.gcs.log_spanner_instance.name}/databases/${module.gcs.log_spanner_db.name}",
"--spanner=${locals.spanner_db_full}",
"--project=${var.project_id}",
"--listen=:8080",
"--kms_key=${google_kms_crypto_key_version.log_signer.id}",
Expand All @@ -115,11 +119,6 @@ resource "google_cloud_run_v2_service" "default" {
}
}
}
containers {
image = "us-docker.pkg.dev/cloud-ops-agents-artifacts/cloud-run-gmp-sidecar/cloud-run-gmp-sidecar:1.0.0"
name = "collector"
depends_on = ["example-gcp"]
}
}
client = "terraform"
depends_on = [
Expand Down

0 comments on commit 3db7706

Please sign in to comment.