Skip to content

Instantly share code, notes, and snippets.

@lioneltchami
Created July 2, 2022 01:33
Show Gist options
  • Select an option

  • Save lioneltchami/f6b7c2957065bc8770e5378864d076a4 to your computer and use it in GitHub Desktop.

Select an option

Save lioneltchami/f6b7c2957065bc8770e5378864d076a4 to your computer and use it in GitHub Desktop.
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "3.51.0"
}
}
}
provider "google" {
// Only needed if you use a service account key
credentials = file(var.credentials_file_path)
project = var.project_id
region = var.region
zone = var.main_zone
}
module "google_networks" {
source = "./networks"
project_id = var.project_id
region = var.region
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment