|
@@ -1,29 +1,22 @@
|
|
|
locals {
|
|
|
- # If you want to use any of the variables in _this_ file, you have to load them here.
|
|
|
- # However, they will all be available as inputs to the module loaded in terraform.source
|
|
|
- # 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"))
|
|
|
+ region_vars = read_terragrunt_config(find_in_parent_folders("region.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"))
|
|
|
}
|
|
|
|
|
|
-# 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.
|
|
|
terraform {
|
|
|
# Double slash is intentional and required to show root of modules
|
|
|
- source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/transit-gateway-interconnect-vpn?ref=v0.3.0"
|
|
|
+ source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/transit-gateway-interconnect-vpn?ref=v0.3.1"
|
|
|
}
|
|
|
|
|
|
dependency "transit-gateway-hub" {
|
|
|
config_path = "../008-transit-gateway-hub"
|
|
|
}
|
|
|
|
|
|
-dependency "palo-alto-firewalls" {
|
|
|
- config_path = "../../../../common/aws-us-gov/afs-mdr-common-services-gov/018-palo-alto-firewalls"
|
|
|
+dependency "xdr-interconnect-instances" {
|
|
|
+ config_path = "../018-xdr-interconnect-instances"
|
|
|
}
|
|
|
|
|
|
# Include all settings from the root terragrunt.hcl file
|
|
@@ -41,5 +34,6 @@ inputs = {
|
|
|
Purpose = "Transit Gateway VPN"
|
|
|
Terraform = "aws/${basename(get_parent_terragrunt_dir())}/${path_relative_to_include()}/"
|
|
|
}
|
|
|
- firewall_public_ips = dependency.palo-alto-firewalls.outputs.untrusted_ips
|
|
|
+ xdr_interconnect_public_ips = dependency.xdr-interconnect-instances.outputs.public_ips
|
|
|
+ transit_gateway_id = dependency.transit-gateway-hub.outputs.tgw_id
|
|
|
}
|