Skip to content

Commit

Permalink
Merge pull request #5 from clouddrove/RT-ISSUE
Browse files Browse the repository at this point in the history
fix route issue
  • Loading branch information
d4kverma authored Jul 19, 2022
2 parents 51794e0 + ff3aa77 commit 806e44a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}

0 comments on commit 806e44a

Please sign in to comment.