View a markdown version of this page

Delete an AWS Transit Gateway SSE connect attachment - Amazon VPC

Delete an AWS Transit Gateway SSE connect attachment

Delete an SSE connect attachment when you no longer want traffic from a transit gateway to go through SSE connect. You can't delete an SSE connect attachment from your transit gateway using the Amazon VPC console or the Amazon EC2 API. The SSE connect owner deletes the attachment from the SSE connect. In the AWS Network Manager console, this action is named Disassociate. Deleting the SSE connect attachment also deletes its transit gateway attachment.

Warning

Deleting an SSE connect attachment causes traffic loss. It removes the routes that it propagated to your transit gateway route tables, including the default routes 0.0.0.0/0 and ::/0 and any SNAT ranges, and traffic that matches those routes is dropped until you update your routing. Before you delete the attachment, update your transit gateway route tables to account for the removal of these routes.

To delete an SSE connect attachment using the console
  1. Open the Network Manager console at https://console.aws.amazon.com/networkmanager/home/.

  2. In the navigation pane, choose SSE connects.

  3. Select the SSE connect.

  4. On the Attachments tab, select the attachment.

  5. Choose Actions, Disassociate.

  6. When prompted for confirmation, enter confirm, and then choose Disassociate.

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

To delete an SSE connect attachment using the AWS CLI
  1. To find the ID of the SSE connect attachment, run the following AWS CLI list-sse-connect-transit-gateway-attachments command. In the output, match the TransitGatewayAttachmentId to the transit gateway attachment that you want to delete, and note its SseConnectTransitGatewayAttachmentId.

    aws networkmanager list-sse-connect-transit-gateway-attachments \ --sse-connect-id sse-connect-1234567890abcdef0
  2. To delete the attachment, run the following AWS CLI delete-sse-connect-transit-gateway-attachment command.

    aws networkmanager delete-sse-connect-transit-gateway-attachment \ --sse-connect-transit-gateway-attachment-id sse-connect-tgw-attach-1234567890abcdef0
  3. To verify that the transit gateway attachment moves to the deleting state and then to the deleted state, run the following AWS CLI describe-transit-gateway-attachments command.

    aws ec2 describe-transit-gateway-attachments \ --transit-gateway-attachment-ids tgw-attach-1234567890abcdef0