|
@@ -7,7 +7,7 @@ locals {
|
|
#environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
|
|
#environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
|
|
#partition_vars = read_terragrunt_config(find_in_parent_folders("partition.hcl"))
|
|
#partition_vars = read_terragrunt_config(find_in_parent_folders("partition.hcl"))
|
|
#region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
|
|
#region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
|
|
- #account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
|
|
|
|
|
|
+ account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
|
|
#global_vars = read_terragrunt_config(find_in_parent_folders("globals.hcl"))
|
|
#global_vars = read_terragrunt_config(find_in_parent_folders("globals.hcl"))
|
|
|
|
|
|
# Extract out common variables for reuse
|
|
# Extract out common variables for reuse
|
|
@@ -18,7 +18,7 @@ locals {
|
|
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
|
|
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
|
|
terraform {
|
|
terraform {
|
|
# Double slash is intentional and required to show root of modules
|
|
# Double slash is intentional and required to show root of modules
|
|
- source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/iam?ref=v0.1.1"
|
|
|
|
|
|
+ source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/standard_vpc?ref=v0.1.1"
|
|
}
|
|
}
|
|
|
|
|
|
# Include all settings from the root terragrunt.hcl file
|
|
# Include all settings from the root terragrunt.hcl file
|
|
@@ -31,4 +31,10 @@ inputs = {
|
|
# All of the inputs from the inherited hcl files are available automatically
|
|
# All of the inputs from the inherited hcl files are available automatically
|
|
# (via the `inputs` section of the root `terragrunt.hcl`). However, modules
|
|
# (via the `inputs` section of the root `terragrunt.hcl`). However, modules
|
|
# will be more flexible if you specify particular input values.
|
|
# will be more flexible if you specify particular input values.
|
|
|
|
+ name = "vpc_primary_${local.account_vars.locals.account_name}"
|
|
|
|
+ cidr = local.account_vars.locals.standard_vpc_cidr
|
|
|
|
+ tags = {
|
|
|
|
+ Purpose = "Malware Detonation"
|
|
|
|
+ Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
|
|
|
|
+ }
|
|
}
|
|
}
|