1 cloud router (vpn gateway) for tunnels to different peer (external) gateway
mrizalw opened this issue · 1 comments
mrizalw commented
Using existing module with 2 different external peer target, let's say 1st target can be other GCP Cloud VPN, while 2nd target will be external cloud/onprem
while putting two parameters on module :
peer_gcp_gateway = local.dev_vpnha_selflink
peer_external_gateway = {
redundancy_type = "FOUR_IPS_REDUNDANCY"
interfaces = [
{
id = 0
ip_address = "1.1.1.1" # aws_vpn1_tunnel1_ip
},
{
id = 1
ip_address = "2.2.2.2" # aws_vpn1_tunnel2_ip
},
{
id = 2
ip_address = "3.3.3.3" # aws_vpn2_tunnel1_ip
},
{
id = 3
ip_address = "4.4.4.4" # aws_vpn2_tunnel2_ip
},
]
}
came error
Error: ConflictsWith
on .terraform/modules/vpn_ha_prod/modules/vpn_ha/main.tf line 161, in resource "google_compute_vpn_tunnel" "tunnels":
161: peer_external_gateway = local.peer_external_gateway
"peer_external_gateway": conflicts with peer_gcp_gateway
the existing tunnel will change the peer gateway using the "peer_external_gateway"
is there anyway we can done this using 1 module? instead of creating new router/module for extenal cloud connection
github-actions commented
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days