Skip to content

Commit

Permalink
add trigger to generate new config
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 27, 2022
1 parent 828a480 commit 8c9eb37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vpn-transit-gateway/vpn-config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ resource "null_resource" "directory_setup" {
resource "null_resource" "generate_configs" {
for_each = var.create ? local.vpn_tunnel_outputs : {}
triggers = {
directory_setup = null_resource.directory_setup.id
directory_setup = null_resource.directory_setup.id
vpn_connection_id = each.value.vpn_connection_id
}
provisioner "local-exec" {
working_dir = format("%v/%v", path.root, null_resource.directory_setup.triggers.name)
Expand Down

0 comments on commit 8c9eb37

Please sign in to comment.