Skip to content
Snippets Groups Projects
Commit 9cd04c32 authored by Taha Cherfia's avatar Taha Cherfia
Browse files

Revert "infra: update deployment"

This reverts commit dee3e69c.
parent dee3e69c
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ resource "google_cloud_run_v2_service" "translation_api_service" { ...@@ -44,7 +44,7 @@ resource "google_cloud_run_v2_service" "translation_api_service" {
env { env {
name = "HOLI_LIBRETRANSLATE_BASE_URL" name = "HOLI_LIBRETRANSLATE_BASE_URL"
value = "https://${local.environment == "production" ? "production" : "staging"}.${data.terraform_remote_state.holi_libretranslate_common_state.outputs.dns_libretranslate_domain_name}" value = local.environment == "production" ? "https://production.libretranslate.apis.holi.social" : "https://staging.libretranslate.apis.holi.social"
} }
resources { resources {
......
...@@ -21,14 +21,6 @@ data "terraform_remote_state" "holi_translation_api_common_state" { ...@@ -21,14 +21,6 @@ data "terraform_remote_state" "holi_translation_api_common_state" {
} }
} }
data "terraform_remote_state" "holi_libretranslate_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "libretranslate-common"
}
}
# provider google including beta features # provider google including beta features
provider "google" { provider "google" {
region = local.default_region region = local.default_region
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment