Architecture
We will construct the following architecture:Prerequisites
VPC
This step is performed on AWS. ⚠️ Note: Ensure the intended region is selected. In this example, we are using eu-central-1 as the region.Virtual Private Gateway
This step is performed on AWS. Create and attach a virtual private gateway to the VPC created. ⚠️ Note: Ensure the intended region is selected. In this example, we are using eu-central-1 as the region. ⚠️ Note: Amazon default ASN value is 64512. You will need this value for VXC creation. Next, attach the virtual private gateway to the VPC created in the first step. The state of the virtual private gateway will go from “Detached” to “Attaching” and finally “Attached”.VPC Route Table
This step is performed on AWS.Internet Gateway
This step is performed on AWS. This is optional. Create and attach an internet gateway to the VPC created.Subnet
This step is performed on AWS. Assuming you don’t have a subnet setup — Choose the VPC created. Subnet CIDR block should be chosen from within the VPC block.EC2
This step is performed on AWS. Assuming you don’t have an EC2 instance — spin one up in the same region. Assign the VPC and Subnet created previously. Enable public IP on the instance so you can ssh into it.Account ID
This step is performed on AWS. ⚠️ You would need this number when you create the Telnyx VXC later.Telnyx Network
This step is performed on Telnyx. If you don’t have a network created already, you may follow this guide to create one.Procedure
Create a VXC resource
This step is performed on Telnyx.request
Take note of the VXC id returned in the response.
Direct Connect
This step is performed on AWS. If you haven’t accepted the connection from your AWS account within 1 hour of the VXC creation, the VXC would be deleted and you will have to start over.Enable Primary Connection
This step is performed on Telnyx. The connection must be enabled to be used.request
Virtual Interface
This step is performed on AWS. The connection created above needs to have an interface to which to connect. Interface Parameters
Lastly you should see the following – the interface is “available”.