Clean up resources

Overview

ℹ️ Information: This section guides you through the process of cleaning up all resources created during the lab to avoid ongoing charges. Follow these steps in the specified order to ensure proper cleanup.

Remove Transit Gateway Attachments

  1. Access VPC Management Console

    • Open the VPC Management Console
    • Select Transit Gateway Attachments in the left sidebar
  2. Delete Attachments

    • Select each attachment
    • Click Actions
    • Choose Delete
    • Confirm deletion in the prompt

⚠️ Warning: You must delete all Transit Gateway Attachments before deleting the Transit Gateway itself.

Delete Transit Gateway

  1. Access Transit Gateways

    • In the VPC Management Console
    • Select Transit Gateways in the left sidebar
  2. Delete Transit Gateway

    • Select your Transit Gateway
    • Click Actions
    • Choose Delete
    • Confirm deletion in the prompt

⚠️ Warning: Ensure all Transit Gateway Attachments are completely removed before attempting to delete the Transit Gateway.

Delete CloudFormation Stack

  1. Access CloudFormation Console

    • Open the CloudFormation Management Console
    • Select Stacks in the left sidebar
  2. Delete Stack

    • Select your lab’s CloudFormation stack
    • Click Delete
    • Choose Delete stack in the prompt

ℹ️ Information: The CloudFormation stack deletion will automatically remove all resources created by the template, including:

  • VPCs and subnets
  • EC2 instances
  • Security groups
  • Route tables
  • Other associated resources

⚠️ Warning: The stack deletion process may take several minutes to complete. Wait until the stack is fully deleted before closing the console.