To accept the Transit Gateway attachment in AWS, do the following:
- In the AWS Console, go to VPC > Transit Gateway Attachments.
- Wait for an attachment request from the Konnect AWS Account ID.
- Accept the request.
Ensure that each AWS VPC requiring traffic forwarding has its own Transit Gateway attachment.
After the attachment is active, create a route in your AWS VPC to forward traffic to the Konnect managed VPC through the Transit Gateway. This ensures proper traffic flow from Konnect to your Services and back.
To properly route traffic between your AWS VPCs and Dedicated Cloud Gateways via AWS Transit Gateway, additional routing steps are required:
- From your AWS Console, navigate to VPC > Transit Gateways.
- Select your transit gateway, then select Transit Gateway Attachments.
- Click Create transit gateway attachment and attach each AWS VPC that needs connectivity to your Kong DCGW.
- After attachments are created, navigate to Transit Gateway Route Tables.
- If the attachment is associated with (and propagating to) the route table, the VPC CIDRs appears automatically.
- If not, select the relevant Transit Gateway route table, then click Create route to add routes to your Kong DCGW VPC CIDR range and AWS VPC CIDR ranges. Ensure these CIDR blocks do not overlap.
- Next, navigate to your AWS VPCs, select Route Tables, and update your route tables:
- Add a new route for the Kong DCGW VPC CIDR with the Target set to your Transit Gateway ID.
- For example:
Destination: 192.168.0.0/16
-> Target: tgw-xxxxxxxx
- Verify your AWS Security Groups and Network ACLs:
- Allow necessary inbound/outbound traffic for ports and protocols used by your upstream applications and Kong DCGW.
- Ensure Network ACLs permit traffic between AWS VPCs and Kong DCGW.
- Confirm connectivity by testing communication between your AWS VPC resources and Kong DCGW endpoints with
ping
, telnet
, or traceroute
).
Once the transit gateway attachment is successful and you’ve configured routing in your AWS VPC, add a route where the upstream services are running, and configure the route to forward all traffic for the Konnect managed VPC via the transit gateway. This ensures that traffic from the Konnect data plane reaches the service and the response packets are routed back correctly.