diff --git a/vpn-transit-gateway/vpn-config.tf b/vpn-transit-gateway/vpn-config.tf index 24d4abc..d03c34d 100644 --- a/vpn-transit-gateway/vpn-config.tf +++ b/vpn-transit-gateway/vpn-config.tf @@ -71,7 +71,7 @@ resource "null_resource" "generate_configs" { resource "local_sensitive_file" "vpn_details_json" { for_each = local.vpn_tunnel_outputs # content = templatefile("${path.module}/templates/vpn_details.tpl"), { - content = jsonencode(merge({ version = local._module_version, name = each.key }, each.value, local.vpc_tunnel_secrets[each.key])) + content = jsonencode(merge({ version = local._module_version, name = each.key }, each.value, local.vpn_tunnel_secrets[each.key])) filename = format("${path.root}/%v/%v.%v.%v.json", null_resource.directory_setup.triggers.name, local.account_id, local.region, each.key) file_permission = "0644" } @@ -79,7 +79,7 @@ resource "local_sensitive_file" "vpn_details_json" { resource "local_sensitive_file" "vpn_details_yaml" { for_each = local.vpn_tunnel_outputs # content = templatefile("${path.module}/templates/vpn_details.tpl"), { - content = yamlencode(merge({ version = local._module_version, name = each.key }, each.value, local.vpc_tunnel_secrets[each.key])) + content = yamlencode(merge({ version = local._module_version, name = each.key }, each.value, local.vpn_tunnel_secrets[each.key])) filename = format("${path.root}/%v/%v.%v.%v.yml", null_resource.directory_setup.triggers.name, local.account_id, local.region, each.key) file_permission = "0644" }