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.
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
-
Open the Network Manager console at https://console.aws.amazon.com/networkmanager/home/
. -
In the navigation pane, choose SSE connects.
-
Select the SSE connect.
-
On the Attachments tab, select the attachment.
-
Choose Actions, Disassociate.
-
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
-
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
TransitGatewayAttachmentIdto the transit gateway attachment that you want to delete, and note itsSseConnectTransitGatewayAttachmentId.aws networkmanager list-sse-connect-transit-gateway-attachments \ --sse-connect-idsse-connect-1234567890abcdef0 -
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-idsse-connect-tgw-attach-1234567890abcdef0 -
To verify that the transit gateway attachment moves to the
deletingstate and then to thedeletedstate, run the following AWS CLI describe-transit-gateway-attachments command.aws ec2 describe-transit-gateway-attachments \ --transit-gateway-attachment-idstgw-attach-1234567890abcdef0