diff --git a/main.tf b/main.tf index 2835932..2b86f6a 100644 --- a/main.tf +++ b/main.tf @@ -19,9 +19,9 @@ data "google_project" "project" { } locals { - api_image = var.database_type == "mysql" + api_image = (var.database_type == "mysql" ? "us-docker.pkg.dev/google-samples/containers/jss/three-tier-web-app-api:v0.0.1" - : "us-docker.pkg.dev/google-samples/containers/jss/three-tier-web-app-api-postgres:v0.0.1" + : "us-docker.pkg.dev/google-samples/containers/jss/three-tier-web-app-api-postgres:v0.0.1") fe_image = "us-docker.pkg.dev/google-samples/containers/jss/three-tier-web-app-fe:v0.0.1" api_env_vars_postgresql = {