diff --git a/02/terragrunt/live/stage-fek/opensearch/terragrunt.hcl b/02/terragrunt/live/stage-fek/opensearch/terragrunt.hcl index e69de29..26a1fcb 100644 --- a/02/terragrunt/live/stage-fek/opensearch/terragrunt.hcl +++ b/02/terragrunt/live/stage-fek/opensearch/terragrunt.hcl @@ -0,0 +1,23 @@ +include "root" { + path = find_in_parent_folders() +} + +terraform { + source = "../../../modules//opensearch" + extra_arguments "common_vars" { + commands = get_terraform_commands_that_need_vars() + required_var_files = ["${get_parent_terragrunt_dir()}/common.tfvars"] + } +} + +dependency "vpc" { + config_path = "../../../live/stage//vpc" +} + +inputs = { + subnets = dependency.vpc.outputs.vpc.private_subnets + es_version = "OpenSearch_1.2" + instance_type = "t2.small.search" + vpc_id = dependency.vpc.outputs.vpc.vpc_id + vpc_cidr_blocks = dependency.vpc.outputs.vpc.private_subnets_cidr_blocks +} diff --git a/02/terragrunt/live/stage-fek/terragrunt.hcl b/02/terragrunt/live/stage-fek/terragrunt.hcl index 82b42d9..6195e44 100644 --- a/02/terragrunt/live/stage-fek/terragrunt.hcl +++ b/02/terragrunt/live/stage-fek/terragrunt.hcl @@ -18,9 +18,6 @@ generate "provider" { contents = <