

# Accept or reject an AWS Transit Gateway SSE connect attachment

An SSE connect attachment connects your transit gateway to a provider-managed security service edge (SSE) through SSE connect. When a different account owns the SSE connect, you accept or reject the attachment request from the SSE connect owner. You control whether traffic from your transit gateway can go through an SSE connect that another account owns.

If the same account owns the SSE connect and the transit gateway, AWS accepts the attachment automatically and you don't need to perform these steps.

A cross-account SSE connect attachment works as follows:

1. You share your transit gateway with the SSE connect owner's account using AWS Resource Access Manager (AWS RAM). The SSE connect owner can request an attachment only to a transit gateway that is shared with them. For more information about sharing a transit gateway, see [Shared transit gateways](working-with-transit-gateways.md#transit-gateway-share).

1. The SSE connect owner requests an SSE connect attachment to your transit gateway. The attachment appears on your transit gateway in the `pendingAcceptance` state.

1. You accept or reject the attachment. If you accept it, the attachment enters the `pending` state, and then becomes `available` after AWS provisions it. If you reject it, the attachment enters the `rejected` state, and AWS eventually deletes it.

**Note**  
If you configured your transit gateway to automatically accept shared attachments, it accepts SSE connect attachments from other accounts automatically, and you don't need to perform these steps.

## Accept or reject an SSE connect attachment using the console
<a name="accept-reject-sse-connect-console"></a>

**To accept or reject 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 attachments**.

1. In the list of attachments, select the attachment with a state of **Pending acceptance** and a type of **SSE Connect**.

1. Choose **Actions**, and then choose **Accept attachment** or **Reject attachment**.

1. To confirm, choose **Accept** or **Reject**.

## Accept or reject an SSE connect attachment using the AWS CLI or API
<a name="accept-reject-sse-connect-cli"></a>

In the following commands, replace the example values in italics with your own.

**To accept or reject an SSE connect attachment using the AWS CLI**

1. To find the pending attachment, run the following AWS CLI [describe-transit-gateway-attachments](https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-transit-gateway-attachments.html) command, filtering by resource type and state.

   ```bash
   aws ec2 describe-transit-gateway-attachments \
     --filters Name=resource-type,Values=sse-connect Name=state,Values=pendingAcceptance
   ```

1. Accept or reject the attachment.
   + To accept the attachment, run the following AWS CLI [accept-transit-gateway-sse-connect-attachment](https://docs.aws.amazon.com/cli/latest/reference/ec2/accept-transit-gateway-sse-connect-attachment.html) command.

     ```bash
     aws ec2 accept-transit-gateway-sse-connect-attachment \
       --transit-gateway-attachment-id {{tgw-attach-1234567890abcdef0}}
     ```
   + To reject the attachment, run the following AWS CLI [reject-transit-gateway-sse-connect-attachment](https://docs.aws.amazon.com/cli/latest/reference/ec2/reject-transit-gateway-sse-connect-attachment.html) command.

     ```bash
     aws ec2 reject-transit-gateway-sse-connect-attachment \
       --transit-gateway-attachment-id {{tgw-attach-1234567890abcdef0}}
     ```