

# Route traffic through an AWS Transit Gateway SSE connect attachment

After an SSE connect attachment becomes available, associate it with a transit gateway route table and enable route propagation so that traffic from your networks can reach the provider-managed security service edge (SSE) for inspection. If the attachment is from another account, accept it first. For more information, see [Accept or reject a transit gateway SSE connect attachment](accept-reject-sse-connect-attachment.md). For information about route table associations, see [Associate a transit gateway route table](associate-tgw-route-table.md).

When the SSE is ready, the attachment propagates the default routes `0.0.0.0/0` and `::/0` into the route table. The attachment also propagates the source network address translation (SNAT) ranges that the SSE provider assigned to the SSE connect. It propagates these ranges only if the provider provisioned them when the SSE connect owner linked their account. The SSE provider performs SNAT. The routes might not appear immediately after you enable route propagation.

**Note**  
The SSE connect attachment advertises the routes in its associated transit gateway route table to the SSE provider. The provider uses these routes to send traffic back to your networks. Make sure that the associated route table has routes to the networks that send traffic through SSE connect.

## Route traffic through an SSE connect attachment using the console
<a name="route-sse-connect-console"></a>

Complete the following steps to associate the attachment with a route table and enable route propagation, so that traffic from your networks can reach the SSE for inspection.

**To route traffic through an SSE connect attachment using the console**

1. Open the Amazon VPC console at [https://console.aws.amazon.com/vpc/](https://console.aws.amazon.com/vpc/).

1. In the navigation pane, choose **Transit Gateways**.

1. Choose **Transit gateway route tables**.

1. Select the route table you want to modify.

1. Associate the attachment with the route table.

   1. On the **Associations** tab, choose **Create association**.

   1. Select the SSE connect attachment.

   1. Choose **Create association**.

1. Enable route propagation for the attachment.

   1. On the **Propagations** tab, choose **Create propagation**.

   1. Select the SSE connect attachment.

   1. Choose **Create propagation**.

When the provider-managed SSE is ready, the attachment propagates the default routes `0.0.0.0/0` and `::/0`, and any SNAT ranges that the provider assigned, into the route table. The transit gateway then sends traffic that matches those routes to the SSE connect attachment. The attachment also advertises the routes in the route table that it's associated with to the SSE provider, so that the provider can send traffic back to your networks. The routes might not appear immediately.

## Route traffic through an SSE connect attachment using the AWS CLI or API
<a name="route-sse-connect-cli-steps"></a>

Use the AWS CLI or API to associate an SSE connect attachment with a route table and enable route propagation. Make sure that the attachment is in the `available` state before you begin. In the following commands, replace the example values in italics with your own.

**To route traffic through an SSE connect attachment using the AWS CLI**

1. To associate the attachment with a route table, run the following AWS CLI [associate-transit-gateway-route-table](https://docs.aws.amazon.com/cli/latest/reference/ec2/associate-transit-gateway-route-table.html) command.

   ```bash
   aws ec2 associate-transit-gateway-route-table \
     --transit-gateway-route-table-id {{tgw-rtb-1234567890abcdef0}} \
     --transit-gateway-attachment-id {{tgw-attach-1234567890abcdef0}}
   ```

1. To enable route propagation, run the following AWS CLI [enable-transit-gateway-route-table-propagation](https://docs.aws.amazon.com/cli/latest/reference/ec2/enable-transit-gateway-route-table-propagation.html) command.

   ```bash
   aws ec2 enable-transit-gateway-route-table-propagation \
     --transit-gateway-route-table-id {{tgw-rtb-1234567890abcdef0}} \
     --transit-gateway-attachment-id {{tgw-attach-1234567890abcdef0}}
   ```

1. To verify the propagated default routes and any SNAT ranges, run the following AWS CLI [search-transit-gateway-routes](https://docs.aws.amazon.com/cli/latest/reference/ec2/search-transit-gateway-routes.html) command.

   ```bash
   aws ec2 search-transit-gateway-routes \
     --transit-gateway-route-table-id {{tgw-rtb-1234567890abcdef0}} \
     --filters Name=type,Values=propagated
   ```

   If the default routes don't appear yet, the provider-managed SSE might not be ready. Check again later.