This page is available on dedicated instances with VPC enabled
A Virtual Private Cloud (VPC) is a public cloud environment that allows users or companies to set up private clouds in a shared cloud infrastructure. It is possible to set up a peering connection between your VPC and a CloudAMQP VPC with AWS and Google Cloud Platform.
VPC is $99 per month
A dedicated VPC is only available for dedicated plans. See our Plans & Pricing for more information. Shown: Part of the configuring step when creating a new instance in CloudAMQP
When creating a VPC, the VPC subnet must be selected. Ensure that it does not overlap with any VPC subnets needed for peering.
Open the details for the new instance as soon as it is created and navigate to the VPC view. At the top of the page, find the information needed to create the peering request.
Log in to the AWS account, go to VPC and click Peering Connections. Click Create Peering Connection and create a request from the VPC to the CloudAMQP VPC. Ensure the DNS Resolution configures correctly; see section DNS Resolution below for more information.
To accept the peering request, go to the VPC tab in the CloudAMQP Console and click the Accept button for the pending request.
In AWS, navigate to VPC, and select the VPC for which the peering request was created. Click on the Route table in the Description tab to go to the routing table associated with the VPC.
Now click the Routes tab, then Edit routes, and finally Add route. Enter the subnet for the CloudAMQP VPC, select Peering connection in the target dropdown, and select the peering connection just created.
button, and it is done!
Shown: Adding routes to a VPC route table in AWS.
For further information see AWS Documentation for routing table.
When peering a CloudAMQP cluster with a VPC, two different hostnames are provided, for example, amusing-teddybear.in.cloudamqp.com and amusing-teddybear.rmq.cloudamqp.com . The first one is for internal communication between servers in the VPC, and the second one is for public communication, e.g, to access the management UI. In our blog post "Amazon VPC Peering with CloudAMQP" you can learn more about how the public hostname can be set to resolve to the internal IP address, if the requester is located inside the VPC.
Create a peering request from your GCP account to your CloudAMQP VPC network.
More information on how to do this is available in the Google Cloud Docs:
Using VPC Network Peering.
To accept the peering request, go to the VPC tab in the CloudAMQP Console and create a peering request from the CloudAMPQ VPC to your GCP account.
Note that only "subnet peering routes" get imported by default, i.e. static and dynamic routes are not exchanged.