From ff3aa774b739dfc9339f8d5a6c3c76f1a6e004d8 Mon Sep 17 00:00:00 2001 From: Mamraj Yadav Date: Tue, 19 Jul 2022 16:49:02 +0530 Subject: [PATCH] fix module --- _example/example.tf | 2 +- main.tf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_example/example.tf b/_example/example.tf index f7103fa..94b05a8 100644 --- a/_example/example.tf +++ b/_example/example.tf @@ -44,7 +44,7 @@ module "vpn" { label_order = ["name", "environment"] cidr_block = "172.0.0.0/16" subnet_ids = module.subnets.public_subnet_id - route_cidr = ["0.0.0.0/0","0.0.0.0/0"] + route_cidr = ["0.0.0.0/0", "0.0.0.0/0"] route_subnet_ids = module.subnets.public_subnet_id network_cidr = ["0.0.0.0/0"] diff --git a/main.tf b/main.tf index 32f7e5c..2a8fbef 100644 --- a/main.tf +++ b/main.tf @@ -175,4 +175,5 @@ resource "aws_ec2_client_vpn_route" "vpn_route" { client_vpn_endpoint_id = join("", aws_ec2_client_vpn_endpoint.default.*.id) destination_cidr_block = element(var.route_cidr, count.index) target_vpc_subnet_id = element(var.route_subnet_ids, count.index) + depends_on = [aws_ec2_client_vpn_network_association.default] } \ No newline at end of file