aboutsummaryrefslogtreecommitdiff
path: root/terraform/unifi-controller
diff options
context:
space:
mode:
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
+}