Skip to content

Commit

Permalink
add missing secret to spoke tunnels (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoo authored Mar 17, 2023
1 parent 5fb17cb commit 5edc931
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fast/stages/2-networking-b-vpn/vpn-spoke-dev.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module "dev-to-landing-primary-vpn" {
asn = var.vpn_configs.landing.asn
}
bgp_session_range = "${cidrhost(local.bgp_session_ranges.dev-primary.0, 2)}/30"
shared_secret = module.landing-to-spokes-primary-vpn.random_secret
vpn_gateway_interface = 0
}
1 = {
Expand All @@ -44,6 +45,7 @@ module "dev-to-landing-primary-vpn" {
asn = var.vpn_configs.landing.asn
}
bgp_session_range = "${cidrhost(local.bgp_session_ranges.dev-primary.1, 2)}/30"
shared_secret = module.landing-to-spokes-primary-vpn.random_secret
vpn_gateway_interface = 1
}
}
Expand Down
4 changes: 4 additions & 0 deletions fast/stages/2-networking-b-vpn/vpn-spoke-prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module "prod-to-landing-primary-vpn" {
asn = var.vpn_configs.landing.asn
}
bgp_session_range = "${cidrhost(local.bgp_session_ranges.prod-primary.0, 2)}/30"
shared_secret = module.landing-to-spokes-primary-vpn.random_secret
vpn_gateway_interface = 0
}
1 = {
Expand All @@ -44,6 +45,7 @@ module "prod-to-landing-primary-vpn" {
asn = var.vpn_configs.landing.asn
}
bgp_session_range = "${cidrhost(local.bgp_session_ranges.prod-primary.1, 2)}/30"
shared_secret = module.landing-to-spokes-primary-vpn.random_secret
vpn_gateway_interface = 1
}
}
Expand All @@ -69,6 +71,7 @@ module "prod-to-landing-secondary-vpn" {
asn = var.vpn_configs.landing.asn
}
bgp_session_range = "${cidrhost(local.bgp_session_ranges.prod-secondary.0, 2)}/30"
shared_secret = module.landing-to-spokes-secondary-vpn.random_secret
vpn_gateway_interface = 0
}
1 = {
Expand All @@ -77,6 +80,7 @@ module "prod-to-landing-secondary-vpn" {
asn = var.vpn_configs.landing.asn
}
bgp_session_range = "${cidrhost(local.bgp_session_ranges.prod-secondary.1, 2)}/30"
shared_secret = module.landing-to-spokes-secondary-vpn.random_secret
vpn_gateway_interface = 1
}
}
Expand Down

0 comments on commit 5edc931

Please sign in to comment.