|
@@ -3,22 +3,22 @@ locals {
|
|
# However, they will all be available as inputs to the module loaded in terraform.source
|
|
# However, they will all be available as inputs to the module loaded in terraform.source
|
|
# below.
|
|
# below.
|
|
|
|
|
|
- # e.g. inherited variables:
|
|
|
|
- #environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
|
|
|
|
- #partition_vars = read_terragrunt_config(find_in_parent_folders("partition.hcl"))
|
|
|
|
- #region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
|
|
|
|
|
|
+ environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
|
|
|
|
+ partition_vars = read_terragrunt_config(find_in_parent_folders("partition.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"))
|
|
|
|
-
|
|
|
|
- # Extract out common variables for reuse
|
|
|
|
- #env = local.environment_vars.locals.environment
|
|
|
|
|
|
+ global_vars = read_terragrunt_config(find_in_parent_folders("globals.hcl"))
|
|
}
|
|
}
|
|
|
|
|
|
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
|
|
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
|
|
# 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/account_standards?ref=v0.3.0"
|
|
|
|
|
|
+ source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/account_standards?ref=v0.5.3"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+dependency "c2_account_standards" {
|
|
|
|
+ config_path = local.account_vars.locals.c2_account_standards_path
|
|
}
|
|
}
|
|
|
|
|
|
# Include all settings from the root terragrunt.hcl file
|
|
# Include all settings from the root terragrunt.hcl file
|
|
@@ -31,10 +31,8 @@ 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()}/"
|
|
|
|
- #}
|
|
|
|
|
|
+ tags = {
|
|
|
|
+ Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
|
|
|
|
+ }
|
|
|
|
+ cloudtrail_key_arn = dependency.c2_account_standards.outputs.cloudtrail_logging_bucket.kms_key_id
|
|
}
|
|
}
|