feat: Add new Terraform file and fix variable references in existing files

This commit is contained in:
jon brookes 2025-09-08 17:01:14 +01:00
parent 538fed9a66
commit 3e1146ee9d
4 changed files with 3 additions and 6 deletions

0
gcloud/tf/doit.tf Normal file
View file

View file

@ -3,7 +3,7 @@
// The Artifact Registry repository for our app // The Artifact Registry repository for our app
resource "google_artifact_registry_repository" "app-repo" { resource "google_artifact_registry_repository" "app-repo" {
location = vas.region location = var.region
repository_id = "app-repo" repository_id = "app-repo"
description = "App Docker repository" description = "App Docker repository"
format = "DOCKER" format = "DOCKER"

View file

@ -2,8 +2,8 @@
// ---------------------------------- // ----------------------------------
# variable "bucket_name" { # variable "bucket_name" {
# type = string # type = string
# default = "headshed-dev-lab-k3s-bucket" # default = "your-project-name-k3s-bucket"
# description = "headshed-dev-lab k3s Bucket" # description = "your-project-name k3s Bucket"
# } # }
# terraform { # terraform {

View file

@ -13,19 +13,16 @@ variable "env" {
variable "region" { variable "region" {
type = string type = string
default = vars.region
description = "GCP Region" description = "GCP Region"
} }
variable "zone" { variable "zone" {
type = string type = string
default = vars.zone
description = "GCP Zone" description = "GCP Zone"
} }
variable "app_name" { variable "app_name" {
type = string type = string
default = var.app_name
description = "Application name" description = "Application name"
} }