Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 30, 2022
1 parent 40794a3 commit ede5727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vpn-transit-gateway/vpn-config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ resource "local_sensitive_file" "vpn_details_yaml" {

resource "local_sensitive_file" "vpn_site_details_json" {
for_each = var.generate_json_files ? local.vpn_site_tunnel_outputs : {}
content = yamlencode({ version = local._module_version, (each.key) = each.value })
content = yamlencode({ version = local._module_version, site = each.key, vpns = each.value })
filename = format("%v/%v/site.%v.%v.%v.json", path.root, null_resource.directory_setup.triggers.name, local.account_id, local.region, each.key)
file_permission = "0644"
}

resource "local_sensitive_file" "vpn_site_details_yaml" {
for_each = var.generate_yaml_files ? local.vpn_site_tunnel_outputs : {}
content = yamlencode({ version = local._module_version, (each.key) = each.value })
content = yamlencode({ version = local._module_version, site = each.key, vpns = each.value })
filename = format("%v/%v/site.%v.%v.%v.yml", path.root, null_resource.directory_setup.triggers.name, local.account_id, local.region, each.key)
file_permission = "0644"
}
Expand Down

0 comments on commit ede5727

Please sign in to comment.