25 lines
535 B
Terraform
25 lines
535 B
Terraform
|
|
terraform {
|
||
|
|
required_providers {
|
||
|
|
google = {
|
||
|
|
source = "hashicorp/google"
|
||
|
|
version = "~> 4.0"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Provider
|
||
|
|
// ----------------------------------
|
||
|
|
|
||
|
|
// Connect to the GCP project
|
||
|
|
provider "google" {
|
||
|
|
# Configuration options
|
||
|
|
project = var.project_name # Use variable from tfvars
|
||
|
|
region = "us-central1" # Replace with your desired region
|
||
|
|
}
|
||
|
|
# provider "google" {
|
||
|
|
# credentials = file("<my-gcp-creds>.json")
|
||
|
|
# project = var.project_name
|
||
|
|
# region = var.region
|
||
|
|
# zone = var.zone
|
||
|
|
# }
|