aboutsummaryrefslogtreecommitdiff
path: root/terraform/unifi-controller
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2023-02-27 13:18:01 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2023-02-27 13:18:01 +0100
commit2db366457d598ab7fa0d86b57b40b12bf1779964 (patch)
treea6c031843cf1d594ab22b94d6754e1f4dd0bd7f4 /terraform/unifi-controller
parent811e75e8ff711c1c2d176cafb987eb94581010fa (diff)
downloadinfra-2db366457d598ab7fa0d86b57b40b12bf1779964.tar.gz
infra-2db366457d598ab7fa0d86b57b40b12bf1779964.tar.bz2
infra-2db366457d598ab7fa0d86b57b40b12bf1779964.tar.xz
infra-2db366457d598ab7fa0d86b57b40b12bf1779964.zip
wip
Diffstat (limited to 'terraform/unifi-controller')
-rw-r--r--terraform/unifi-controller/backend.tf6
-rw-r--r--terraform/unifi-controller/main.tf16
-rw-r--r--terraform/unifi-controller/terragrunt.hcl8
3 files changed, 17 insertions, 13 deletions
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
+}