Skip to content

Commit 806e44a

Browse files
authored
Merge pull request #5 from clouddrove/RT-ISSUE
fix route issue
2 parents 51794e0 + ff3aa77 commit 806e44a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

_example/example.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module "vpn" {
4444
label_order = ["name", "environment"]
4545
cidr_block = "172.0.0.0/16"
4646
subnet_ids = module.subnets.public_subnet_id
47-
route_cidr = ["0.0.0.0/0","0.0.0.0/0"]
47+
route_cidr = ["0.0.0.0/0", "0.0.0.0/0"]
4848
route_subnet_ids = module.subnets.public_subnet_id
4949
network_cidr = ["0.0.0.0/0"]
5050

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,5 @@ resource "aws_ec2_client_vpn_route" "vpn_route" {
175175
client_vpn_endpoint_id = join("", aws_ec2_client_vpn_endpoint.default.*.id)
176176
destination_cidr_block = element(var.route_cidr, count.index)
177177
target_vpc_subnet_id = element(var.route_subnet_ids, count.index)
178+
depends_on = [aws_ec2_client_vpn_network_association.default]
178179
}

0 commit comments

Comments
 (0)