We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51794e0 + ff3aa77 commit 806e44aCopy full SHA for 806e44a
_example/example.tf
@@ -44,7 +44,7 @@ module "vpn" {
44
label_order = ["name", "environment"]
45
cidr_block = "172.0.0.0/16"
46
subnet_ids = module.subnets.public_subnet_id
47
- route_cidr = ["0.0.0.0/0","0.0.0.0/0"]
+ route_cidr = ["0.0.0.0/0", "0.0.0.0/0"]
48
route_subnet_ids = module.subnets.public_subnet_id
49
network_cidr = ["0.0.0.0/0"]
50
main.tf
@@ -175,4 +175,5 @@ resource "aws_ec2_client_vpn_route" "vpn_route" {
175
client_vpn_endpoint_id = join("", aws_ec2_client_vpn_endpoint.default.*.id)
176
destination_cidr_block = element(var.route_cidr, count.index)
177
target_vpc_subnet_id = element(var.route_subnet_ids, count.index)
178
+ depends_on = [aws_ec2_client_vpn_network_association.default]
179
}
0 commit comments