31 lines
654 B
HCL
31 lines
654 B
HCL
terraform {
|
|
required_providers {
|
|
google = {
|
|
source = "hashicorp/google"
|
|
version = "~> 6.0"
|
|
}
|
|
random = {
|
|
source = "hashicorp/random"
|
|
version = "~> 3.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
# Authentication: use Application Default Credentials (gcloud auth application-default login)
|
|
# or set GOOGLE_APPLICATION_CREDENTIALS to a service account key file.
|
|
provider "google" {
|
|
project = var.project_id
|
|
region = var.region
|
|
}
|
|
|
|
variable "project_id" {
|
|
description = "GCP project ID for the dev environment"
|
|
type = string
|
|
}
|
|
|
|
variable "region" {
|
|
description = "GCP region"
|
|
type = string
|
|
default = "europe-west4"
|
|
}
|