Before you begin, log in to the Timescale Cloud console.
In the Timescale Cloud console, click
VPC in the left navigation bar to go to the VPC
dashboard. You can add new VPCs here for your Timescale Cloud services to attach to.
The VPCs created here are peered with your own VPC as part of the setup process.
Create VPC, type a name for your new VPC, and provide an IPv4 CIDR block
192.168.0.0/24). Make sure that the CIDR block you
choose for your Timescale Cloud VPC does not overlap with the AWS VPC you are using to create
a peering connection. If the CIDR blocks overlap, the peering process will fail.
You can always find the CIDR block of your AWS VPC from the AWS console.
When you have created a Timescale Cloud VPC, you are ready to create a peering connection
between your Cloud VPC and your cloud VPC. To do this, click the
Add text in
VPC Peering column for the Cloud VPC that you would like to connect.
In the form that is displayed, enter the AWS Account ID, AWS VPC ID, and AWS region of your
cloud VPC for the new peering connection. When you have entered the correct
Add peering connection to begin the peering process.
This process is asynchronous, and results in a peering connection sent to your AWS account for you to accept. This is an important safety mechanism — never accept a peering connection from an unknown account.
Navigate to the AWS console's Peering Connections dashboard. Find the new peering connection request sent from Timescale Cloud, and accept the request.
pcx-) as it is used in the next step.
Once you have accepted the peering connection, the two VPCs will now be peered; however, in order to use this peering connection, you need to update your VPC's route table to include the CIDR block of your peered Timescale Cloud VPC, and you also need to update your VPC's security groups.
Within the AWS console, navigate to the
dashboard. Select the route table corresponding to your VPC. From the detail menu, select
Routes tab and click the
Edit routes button.
From this view, click
Add route. In the
Destination column of the new row,
enter the CIDR block of the Timescale Cloud VPC for which the peering connection
was configured in the previous few steps.
Target column, enter the peering connection ID (starting with
noted in the previous step where you created the peering connection.
No other configuration is needed here, so click
Save routes. This
configuration allows network traffic to flow from your VPC, across the peering
connection, and over to the Timescale Cloud VPC where your TimescaleDB services reside.
Within the AWS console, navigate to the
dashboard. From this view, click
Create security group to create a new security group.
Create security group view, enter a name for your security group. Add whatever
content you would like to the description field. For the
VPC field, select the VPC
which has been peered with your Cloud VPC.
No inbound rules are required, so leave the inbound rules section empty.
In the outbound rules section, select
Custom TCP for the rule type. The protocol
should remain as TCP. The port range should be
5432, which is the port which will
be used to connect to your Timescale Cloud services. The Destination should be set
Custom and the value should be the CIDR block of your Cloud VPC.
Destinationcolumn with the value
0.0.0.0/0. Though this value will certainly work, it is more "open" than needed, and should be deleted.
Create security group. With this step, you will now be able to
connect to any of your Timescale Cloud services attached to your peered VPC. In the next
section, you will learn how to create a Timescale Cloud service with a VPC attachment.
In the Timescale Cloud console, navigate to the
Services Dashboard. Click
Create service and select the compute and disk size which fits your needs.
Expand the dropdown menu under the
Select a VPC step and select the VPC you created
previously. If you have multiple VPCs, select the VPC which you want your new service
to be attached to.
Create Service, and Timescale Cloud will create your new service. Due to
selecting a VPC during setup, your new service will be created with an attachment to
your selected VPC.
Found an issue on this page?Report an issue!