Skip to content

Commit

Permalink
Test Digger
Browse files Browse the repository at this point in the history
  • Loading branch information
jace-ys committed Oct 20, 2024
1 parent 1b0b66a commit 79e4cec
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 7 deletions.
5 changes: 0 additions & 5 deletions Taskfile.infra.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion digger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ traverse_to_nested_projects: true

projects:
- name: dev
dir: infra/environments/dev
dir: infra/environments/dev/gcp
workspace: dev
10 changes: 9 additions & 1 deletion infra/environments/dev/gcp/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
data "google_project" "this" {
project_id = "emp-jace-a850"
project_id = var.google_project
}

output "google_project" {
value = data.google_project.this
}

output "hello" {
value = "world"
}
17 changes: 17 additions & 0 deletions infra/environments/dev/gcp/terraform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
terraform {
required_version = "~> 1.9.8"

required_providers {
google = {
source = "hashicorp/google"
version = "6.7.0"
}
}
}

provider "google" {
project = var.google_project
region = var.google_region

add_terraform_attribution_label = true
}
9 changes: 9 additions & 0 deletions infra/environments/dev/gcp/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
variable "google_project" {
type = string
default = "emp-jace-a850"
}

variable "google_region" {
type = string
default = "europe-west1"
}

0 comments on commit 79e4cec

Please sign in to comment.