From 31530bbfbaa874a7abd02fc726855170447adb03 Mon Sep 17 00:00:00 2001 From: Sokratis Siozos-Drosos Date: Wed, 24 Apr 2019 11:20:31 +0200 Subject: [PATCH] (MODE-11365) Fixed terragrunt structure. --- deployment/eu-central-1/terraform.tfvars | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 deployment/eu-central-1/terraform.tfvars diff --git a/deployment/eu-central-1/terraform.tfvars b/deployment/eu-central-1/terraform.tfvars new file mode 100644 index 0000000..aea094d --- /dev/null +++ b/deployment/eu-central-1/terraform.tfvars @@ -0,0 +1,20 @@ +terragrunt = { + remote_state { + backend = "s3" + config { + bucket = "tg-state-eu-central-1" + key = "${path_relative_to_include()}/terraform.tfstate" + region = "eu-central-1" + encrypt = true + dynamodb_table = "terragrunt-lock-table-eu-central-1" + } + } + extra_arguments "common_vars" { + commands = ["${get_terraform_commands_that_need_vars()}"] + optional_var_files = [ + "${get_tfvars_dir()}/${find_in_parent_folders("region.tfvars", "skip-region-if-does-not-exist")}", + "${get_tfvars_dir()}/${find_in_parent_folders("environment.tfvars", "skip-env-if-does-not-exist")}", + "${get_tfvars_dir()}/terraform.tfvars" + ] + } +} \ No newline at end of file