Skip to content
Snippets Groups Projects
init.tf 772 B
Newer Older
  # allow the lowest common version across all projects, so that the current CI docker image version suits all projects
  required_version = ">= 1.9"
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "6.23.0"
    }
    google-beta = {
      source  = "hashicorp/google-beta"
      version = "6.24.0"
  backend "gcs" {
    bucket = "holi-shared-terraform-state"
    prefix = "unified-api-common"
  }
}

data "terraform_remote_state" "holi_infra_state" {
  backend = "gcs"
  config = {
    bucket = "holi-shared-terraform-state"
    prefix = "infra"
  }
}

# provider google including beta features
provider "google" {
  region = local.default_region
  region = local.default_region