-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for VPC peering on Google Cloud Platform #74
Comments
@adityabyreddy74 There is no support yet for VPC other than through Amazon Web Services in the provider. You are also the first one requesting this feature, so it has not been prioritised. Can add a task to investigate the issue and what kind of effort is required. |
@tbroden84 Thanks for response. Currently the provider only support accepting peering requests. Ideally it should support peering request mechanism as well. UI and API already have support for that. I figured an alternative solution for this with terraform followed by a curl request. Terraform Script
Curl Request
To conclude, We need terraform support for the curl request part. |
@tbroden84 can this item be prioritized please? |
Hi @tbroden84 ! |
still waiting for it ... |
Would also appreciate this feature |
This is what I used to configure network peering with GCP:
|
Finally come around to fix this issue. We have added a new resource dealing with the GCP VPC peering configuration. Documentatio found at: https://registry.terraform.io/providers/cloudamqp/cloudamqp/latest/docs/resources/vpc_gcp_peering Basically configure the VPC peering from the network to which the CloudAMQP instance should connect to. Extract the network uri (var.google_vpc_id) from the VPC peering configuration and use it in the new resource to connect the VPC for the CloudAMQP instance. Made this available in the latest release v1.15.0. |
Hi @tbroden84 , I guess we have to accept the peering request afterwards in the cloudamqp dashboard. Is there a way to do this via api call? |
Hi @cshintov The peering request is needed from both side for the peering to be active, so no accept of the request is needed. GCP: Create new peering connection from VPC network peering section. Information about project ID and VPC network name of the CloudAMQP instance can be found in the data source: https://registry.terraform.io/providers/cloudamqp/cloudamqp/latest/docs/data-sources/vpc_gcp_info CloudAMQP Terraform provider: You can use the cloudamqp_vpc_gcp_peering resource. Set the Once both request have been made the peering should be completed. |
Can someone help me understand how vpc peering should be between CloudAMQP instance and Google Cloud Platform. I tried referring couple of articles but couldn't able to find exact solution. I know it is possible through UI, but i'm looking for terraform based solution.
Thanks in advance.
The text was updated successfully, but these errors were encountered: