Skip to content

Commit

Permalink
Use terragrunt for live
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Jul 4, 2024
1 parent 17a89fe commit c53cb94
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 83 deletions.
67 changes: 0 additions & 67 deletions deployment/live/example-gcp/main.tf

This file was deleted.

2 changes: 0 additions & 2 deletions deployment/live/example-gcp/terraform.tfvars

This file was deleted.

23 changes: 23 additions & 0 deletions deployment/live/example-gcp/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
terraform {
source = "${get_repo_root()}/deployment/modules/gcs"
}

locals {
project_id = "trillian-tessera"
location = "us-central1"
base_name = "example-gcs"
}

remote_state {
backend = "gcs"

config = {
project = local.project_id
location = local.location
bucket = "${local.project_id}-${local.base_name}-terraform-state"

gcs_bucket_labels = {
name = "terraform_state_storage"
}
}
}
14 changes: 0 additions & 14 deletions deployment/live/example-gcp/variables.tf

This file was deleted.

4 changes: 4 additions & 0 deletions deployment/modules/gcs/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
terraform {
backend "gcs" {}
}

# Services
resource "google_project_service" "serviceusage_googleapis_com" {
service = "serviceusage.googleapis.com"
Expand Down

0 comments on commit c53cb94

Please sign in to comment.