terraform {
  required_providers {
    google = {
      source                = "hashicorp/google"
      version               = "~> 5.0"
    }
    google-beta = {
      source                = "hashicorp/google-beta"
      version               = "~> 5.0"
    }
  }

  backend "gcs" {
    bucket  = "haumdaucher-tf-state"
    prefix  = "terraform/state"
  }
}

provider "google" {
  project = var.project_id
  region  = var.region
  billing_project = var.project_id
  user_project_override = true
}

provider "google-beta" {
  project = var.project_id
  region  = var.region
  billing_project = var.project_id
  user_project_override = true
}
