From 63eb2eef861fc6dc1e64b8ae2707d2bb6bf79e36 Mon Sep 17 00:00:00 2001 From: Pedro Pinheiro Date: Wed, 5 Jul 2023 12:55:02 -0300 Subject: [PATCH] Cleaning up --- examples/complete-vpc/terragrunt.hcl | 2 +- {modules => examples/modules}/complete/context.tf | 0 {modules => examples/modules}/complete/main.tf | 2 +- {modules => examples/modules}/complete/outputs.tf | 2 +- {modules => examples/modules}/complete/variables.tf | 0 {modules => examples/modules}/complete/versions.tf | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename {modules => examples/modules}/complete/context.tf (100%) rename {modules => examples/modules}/complete/main.tf (99%) rename {modules => examples/modules}/complete/outputs.tf (99%) rename {modules => examples/modules}/complete/variables.tf (100%) rename {modules => examples/modules}/complete/versions.tf (100%) diff --git a/examples/complete-vpc/terragrunt.hcl b/examples/complete-vpc/terragrunt.hcl index bce7f02..b067fb2 100644 --- a/examples/complete-vpc/terragrunt.hcl +++ b/examples/complete-vpc/terragrunt.hcl @@ -3,7 +3,7 @@ include { } terraform { - source = "../..//modules/complete" + source = "..//modules/complete" } inputs = { diff --git a/modules/complete/context.tf b/examples/modules/complete/context.tf similarity index 100% rename from modules/complete/context.tf rename to examples/modules/complete/context.tf diff --git a/modules/complete/main.tf b/examples/modules/complete/main.tf similarity index 99% rename from modules/complete/main.tf rename to examples/modules/complete/main.tf index 6c9efbe..0981cc1 100644 --- a/modules/complete/main.tf +++ b/examples/modules/complete/main.tf @@ -14,7 +14,7 @@ locals { ################################################################################ module "aws_vpc" { - source = "../../" + source = "../../.." count = var.enabled ? 1 : 0 enabled = var.enabled diff --git a/modules/complete/outputs.tf b/examples/modules/complete/outputs.tf similarity index 99% rename from modules/complete/outputs.tf rename to examples/modules/complete/outputs.tf index 910acfe..62a5ae3 100644 --- a/modules/complete/outputs.tf +++ b/examples/modules/complete/outputs.tf @@ -609,4 +609,4 @@ output "azs" { output "name" { description = "The name of the VPC specified as argument to this module" value = try(module.aws_vpc[0].name, null) -} +} \ No newline at end of file diff --git a/modules/complete/variables.tf b/examples/modules/complete/variables.tf similarity index 100% rename from modules/complete/variables.tf rename to examples/modules/complete/variables.tf diff --git a/modules/complete/versions.tf b/examples/modules/complete/versions.tf similarity index 100% rename from modules/complete/versions.tf rename to examples/modules/complete/versions.tf