You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a cloud router for VPN between on-prem and GCP combined with dynamic routes (BGP), there is an issue when changing an attribute in the Terraform configuration for either the router_interface or the router_peer. Its actually not possible to change an attribute for one these two resources.
When you change an attribute Terraform will want to recreate the resource. This is fine so far and when doing terraform apply you see output thats saying it is deleting the resource. However, in reality the resource is not deleted at all. You can check/see this either using the web ui or the gcloud CLI
Describing the cloud router will show you the interface and the bgp-peer are still there.
Since the resources are still there Terraform runs in an error in the next step when trying to recreate the resource. It will complain there is already an router_peer with that name. Which is true, because Terraform did not really delete the resource.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Nov 17, 2018
Hi there,
When using a cloud router for VPN between on-prem and GCP combined with dynamic routes (BGP), there is an issue when changing an attribute in the Terraform configuration for either the
router_interface
or therouter_peer
. Its actually not possible to change an attribute for one these two resources.When you change an attribute Terraform will want to recreate the resource. This is fine so far and when doing
terraform apply
you see output thats saying it is deleting the resource. However, in reality the resource is not deleted at all. You can check/see this either using the web ui or the gcloud CLIDescribing the cloud router will show you the interface and the bgp-peer are still there.
Since the resources are still there Terraform runs in an error in the next step when trying to recreate the resource. It will complain there is already an
router_peer
with that name. Which is true, because Terraform did not really delete the resource.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
google_compute_router_peer
orgoogle_compute_router_interface
should first be deleted before the new updated resources can be created.Actual Behavior
Terraform says it deleted the resource, but in reality it was not deleted. Therefore Terraform is not able to create the new updated resource.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
advertised_route_priority
from 100 to 200.terraform apply
The text was updated successfully, but these errors were encountered: