

# SSE connect attachments and routing

A transit gateway uses a Regional SSE connect attachment. A Cloud WAN core network uses one global attachment. Create and manage each attachment from its service-specific guide:
+ [Amazon VPC SSE connect attachments in AWS Transit Gateway](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-sse-connect.html)
+ [SSE connect attachments in AWS Cloud WAN](https://docs.aws.amazon.com/network-manager/latest/cloudwan/cloudwan-sse-attachment.html)

**Warning**  <a name="sse-connect-attachments-routing-overlap"></a>
Prefixes advertised through different attachments on the same SSE connect must not overlap.

## Network Manager states for transit gateway attachments
<a name="sse-connect-attachments-routing-tgw-states"></a>


| State | Description | 
| --- | --- | 
| CREATING | The attachment is being created. | 
| PENDING\_ATTACHMENT\_ACCEPTANCE | For a cross-account attachment, the transit gateway owner must accept the attachment. | 
| AVAILABLE | The attachment is available for routing. | 
| UPDATING | An update is in progress. | 
| FAILED | The attachment could not be created or updated. | 
| REJECTED | The transit gateway owner rejected the attachment. | 
| DELETING | The attachment is being deleted. | 
| DELETED | The attachment was deleted. | 

The underlying transit gateway attachment uses the state names shown in the Amazon VPC console and Amazon EC2 API, such as `pendingAcceptance` and `available`.

## Transit gateway attachments
<a name="sse-connect-attachments-routing-add-tgw"></a>

The transit gateway must have encryption support, 1:1 NAT, and policy-based routing disabled. If another account owns the transit gateway, its owner must share it with your account by using AWS Resource Access Manager. An attachment between resources in the same account is accepted automatically.

For instructions on creating and accepting the attachment, see [Create an AWS Transit Gateway SSE connect attachment](https://docs.aws.amazon.com/vpc/latest/tgw/create-sse-connect-attachment.html) and [Accept or reject an AWS Transit Gateway SSE connect attachment](https://docs.aws.amazon.com/vpc/latest/tgw/accept-reject-sse-connect-attachment.html).

## Transit gateway routing
<a name="sse-connect-attachments-routing-tgw-routes"></a>

Traffic to the SSE provider  
Enable propagation from the SSE connect attachment to each route table whose associated attachments should use the provider. After the provider-managed SSE is ready, the attachment propagates `0.0.0.0/0` and `::/0`.

Traffic from the SSE provider  
Associate the SSE connect attachment with a route table containing the prefixes the provider must reach. SSE connect learns those prefixes and advertises them to the provider.

More-specific routes take precedence over the default routes and keep east-west traffic on its direct path. Do not create static routes that point to the SSE connect attachment.

For instructions on routing traffic, see [Route traffic through an AWS Transit Gateway SSE connect attachment](https://docs.aws.amazon.com/vpc/latest/tgw/route-traffic-sse-connect-attachment.html).

## Cloud WAN attachments
<a name="sse-connect-attachments-routing-add-cloudwan"></a>

A core network uses one global attachment. You do not select a Region or edge location when you create it. Its edge locations are derived from the SSE connect Regions and core network edges. You cannot modify the attachment or its tags after creation.

For instructions on creating the attachment, see [Create an SSE connect attachment in AWS Cloud WAN](https://docs.aws.amazon.com/network-manager/latest/cloudwan/cloudwan-sse-attachment-add.html).

## Cloud WAN routing
<a name="sse-connect-attachments-routing-cloudwan-policy"></a>

Use an attachment policy rule to place the SSE connect attachment in a network function group. Add a `send-to` action for each participating segment. Cloud WAN advertises those segment prefixes to SSE connect.

For complete policy and routing guidance, see [SSE connect attachments in AWS Cloud WAN](https://docs.aws.amazon.com/network-manager/latest/cloudwan/cloudwan-sse-attachment.html).

## View SSE connect routes
<a name="sse-connect-attachments-routing-view-routes"></a>

Use the read-only `GetSseConnectRoutes` operation to view default routes, provider-assigned SNAT ranges, and prefixes learned from attachments. You can filter by Region and destination.

## Delete attachments
<a name="sse-connect-attachments-routing-delete"></a>

Before deleting an attachment, remove routing dependencies from the transit gateway route tables or Cloud WAN core network policy. For instructions on deleting the attachment, see [Delete an AWS Transit Gateway SSE connect attachment](https://docs.aws.amazon.com/vpc/latest/tgw/delete-sse-connect-attachment.html) and [Delete a AWS Cloud WAN core network attachment](https://docs.aws.amazon.com/network-manager/latest/cloudwan/cloudwan-attachments-deleting.html).