Create a peering connection to AWS
To create a peering connection to AWS, you need to perform the following steps:
Bind your AWS and DoubleCloud networks
-
Go to the Connections tab
-
Specify the AWS account ID you want to connect to. You can find this numeric ID in the AWS console
-
Specify the AWS VPC ID. In the AWS console, find your default VPC and copy its ID. It has the following format:
vpc-xxxxxx
. -
Provide your AWS IPv4 CIDR. You can find it on the right from the VPC ID in the AWS console.
-
Select your VPC Region.
-
From the drop-down menu, select your DoubleCloud Network to peer with.
-
Click Submit.
After you have created a connection, enable it on the AWS side. Note that it will take some time before the request appears on the AWS side.
Confirm peering on the AWS side
-
Go to the AWS VPC service page
-
Go to the Virtual private cloud → Peering connections section in the menu on the left:
-
Click your VPC Peering connection ID and choose Actions → Accept Request.
-
In the confirmation dialog, choose Accept request.
At this point, you have successfully peered your AWS and DoubleCloud networks. Now it's time to add a route to the peered VPC.
Configure a route table
Route tables
We will use the default route table and add a route to the DoubleCloud VPC.
-
Go to the AWS VPC service page
-
Open the Virtual private cloud → Route Tables section from the menu on the left:
-
Select a route table associated with the subnet you want to access clusters from.
-
In the Routes tab, click Edit routes.
-
Click Add route and specify its properties:
-
Destination to your DoubleCloud connection as a Managed IPv4 address in the CIDR notation:
-
Target is the ID of a peering connection in DoubleCloud. Click on this field, select Peering connection and then select your connection ID.
-
-
Click Save changes.
Add the AWS VPC CIDR to your cluster's allowlist
-
Go to the Clusters
-
Select your cluster.
-
Click the Allowlist tab.
-
Enter the CIDR of your AWS network from the Connections page in the DoubleCloud console:
-
Click Add.
Now you have fully connected your AWS and DoubleCloud networks.