Open aholyoake-bc opened 3 years ago
I've raised a support ticket with GCP and they have send this issue tracker link https://issuetracker.google.com/issues/150502627
However, at a minimum it would be great to have a gotcha / illustration of a workaround in the provider docs to stop people wasting hours where the problem lies.
Cheers!
Currently the type PARTNER is available for google_compute_interconnect_attachment.
It is possible to configure and manage a BGP peer with a management_type.MANAGED_BY_ATTACHMENT attribute of google_compute_router_peer
that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment
of type PARTNER
. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment
is created, updated, or deleted.
But there isn't any option to do it with the google_compute_router_interface
resource. It needs to be evaluated if it is suitable to do the same with this resource
Community Note
Description
Currently it is impossible to create a layer 2 partner interconnect with bgp fully configured using the terraform
google
provider. When using aPARTNER
interconnect attachment, the interconnect interfaces are automatically created with names such asauto-ia-if-test-sandbo-XXX
and there is no ability to subsequently modify the bgp peer settings without resorting to hacks such as thisIt is not possible to manually create the interfaces and subsequently associate them with the attachment. It is also not possible (afaik) to retrieve the names of the automatically created interfaces (i.e. via a data provider) so that we can refer to them in other states.
New or Affected Resource(s)
Potential Terraform Configuration
Given how the underlying API is behaving, I'm not sure what this should look like
References
gcloud
tab, step 2)b/359705160 b/359704531