feat: Add Terraform configuration for GCP infrastructure and Docker setup
This commit is contained in:
parent
94499fd16e
commit
538fed9a66
10 changed files with 283 additions and 0 deletions
24
gcloud/tf/provider.tf
Normal file
24
gcloud/tf/provider.tf
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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
|
||||
# }
|
||||
Loading…
Add table
Add a link
Reference in a new issue