From 2db366457d598ab7fa0d86b57b40b12bf1779964 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 27 Feb 2023 13:18:01 +0100 Subject: wip --- terraform/unifi-controller/backend.tf | 6 +++--- terraform/unifi-controller/main.tf | 16 ++++++---------- terraform/unifi-controller/terragrunt.hcl | 8 ++++++++ 3 files changed, 17 insertions(+), 13 deletions(-) (limited to 'terraform/unifi-controller') diff --git a/terraform/unifi-controller/backend.tf b/terraform/unifi-controller/backend.tf index af4b54d..5f2d6d0 100644 --- a/terraform/unifi-controller/backend.tf +++ b/terraform/unifi-controller/backend.tf @@ -2,11 +2,11 @@ terraform { backend "s3" { bucket = "terraform-a6726272-73ff-11ed-8bdd-c79eb8376e05" - endpoint = "eu-central-1.linodeobjects.com" key = "unifi-controller/terraform.tfstate" - region = "eu-central-1" + skip_region_validation = true skip_credentials_validation = true skip_metadata_api_check = true - skip_region_validation = true + region = "eu-central-1" + endpoint = "eu-central-1.linodeobjects.com" } } diff --git a/terraform/unifi-controller/main.tf b/terraform/unifi-controller/main.tf index 98d559a..e972e38 100644 --- a/terraform/unifi-controller/main.tf +++ b/terraform/unifi-controller/main.tf @@ -1,16 +1,6 @@ terraform { required_version = "~> 1.3.5" - # backend "s3" { - # bucket = "terraform-a6726272-73ff-11ed-8bdd-c79eb8376e05" - # key = "unifi/terraform.tfstate" - # region = "eu-central-1" - # skip_region_validation = true - # skip_credentials_validation = true - # skip_metadata_api_check = true - # endpoint = "eu-central-1.linodeobjects.com" - # } - required_providers { docker = { source = "kreuzwerker/docker" @@ -34,3 +24,9 @@ provider "docker" { locals { domain_name = "unifi.vpn.trygvis.io" } + +variable "foo" {} + +output "bar" { + value = var.foo.value +} diff --git a/terraform/unifi-controller/terragrunt.hcl b/terraform/unifi-controller/terragrunt.hcl index e147285..35c1b74 100644 --- a/terraform/unifi-controller/terragrunt.hcl +++ b/terraform/unifi-controller/terragrunt.hcl @@ -1,3 +1,11 @@ include "root" { path = find_in_parent_folders() } + +dependency "docker" { + config_path = "../conflatorio-docker" +} + +inputs = { + vpc_id = dependency.docker.outputs.foo +} -- cgit v1.2.3