|
@@ -18,8 +18,12 @@ locals {
|
|
|
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
|
|
|
terraform {
|
|
|
# Double slash is intentional and required to show root of modules
|
|
|
- #source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/vmray_instances?ref=v0.9.4"
|
|
|
- source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/terminated?ref=v1.23.6"
|
|
|
+ source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/vmray_instances?ref=v2.1.4"
|
|
|
+ #source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/terminated?ref=v1.23.6"
|
|
|
+}
|
|
|
+
|
|
|
+dependency "vpc" {
|
|
|
+ config_path = "../010-vpc-vmray"
|
|
|
}
|
|
|
|
|
|
# Include all settings from the root terragrunt.hcl file
|
|
@@ -32,15 +36,14 @@ inputs = {
|
|
|
# All of the inputs from the inherited hcl files are available automatically
|
|
|
# (via the `inputs` section of the root `terragrunt.hcl`). However, modules
|
|
|
# will be more flexible if you specify particular input values.
|
|
|
- vmray_server_instance_type = local.account_vars.locals.vmray_server_instance_type
|
|
|
- vmray_worker_instance_type = local.account_vars.locals.vmray_worker_instance_type
|
|
|
- vmray_worker_instance_count = local.account_vars.locals.vmray_worker_instance_count
|
|
|
- vmray_key_name = local.account_vars.locals.vmray_key_name
|
|
|
-
|
|
|
tags = {
|
|
|
Purpose = "Malware Detonation"
|
|
|
Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
|
|
|
}
|
|
|
+ vpc_id = dependency.vpc.outputs.vpc_id
|
|
|
+ azs = dependency.vpc.outputs.azs
|
|
|
+ public_subnets = dependency.vpc.outputs.public_subnets
|
|
|
+ private_subnets = dependency.vpc.outputs.private_subnets
|
|
|
}
|
|
|
terraform_version_constraint = "= 0.15.1"
|
|
|
terragrunt_version_constraint = ">= 0.29, < 0.30"
|