Newer
Older
terraform {
backend "gcs" {
bucket = "holi-shared-terraform-state"
prefix = "unified-api-environments"
}
}
data "terraform_remote_state" "holi_infra_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "infra"
}
}
data "terraform_remote_state" "holi_unified_api_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "unified-api-common"
}
}
data "terraform_remote_state" "holi_okuna_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "okuna-common"
}
}
data "terraform_remote_state" "holi_donations_api_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "donations-api-common"
}
}
data "terraform_remote_state" "holi_goodnews_api_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "goodnews-api-common"
}
}
data "terraform_remote_state" "holi_geo_api_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "geo-api-common"
}
}
data "terraform_remote_state" "holi_volunteering_api_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "volunteering-api-common"
}
}
data "terraform_remote_state" "holi_notifications_api_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "notifications-api-common"
}
}
data "terraform_remote_state" "holi_translation_api_common_state" {
backend = "gcs"
config = {
bucket = "holi-shared-terraform-state"
prefix = "translation-api-common"
}
}
data "terraform_remote_state" "holi_moderation_environment_state" {
backend = "gcs"
# provide staging moderation environment state for all review deployments of unified-api
workspace = local.environment == "production" ? "production" : "staging"
config = {
bucket = "holi-shared-terraform-state"
prefix = "moderation-environments"
}
}
# provider google including beta features
provider "google" {
region = local.default_region
}
provider "google-beta" {
region = local.default_region