Clean up resources

Clean up resources

We will proceed to delete the resources in the following order:

Terminate EC2 Instances

  1. Terminate EC2 instance:

    • Access the Amazon EC2 console at EC2.
    • On the left navigation bar, select “Instances.”
    • Select all EC2 instances related to the lab.
    • Select Instance state.
    • Select Terminate instance.

    Terminate EC2

  2. Confirm termination.

    Confirm Termination

Remove NAT Gateway and Elastic IP Address

  • Remove NAT Gateway and Elastic IP Address. AWS charges for wasted EIPs, so you need to double-check to avoid unintended charges.

  • Visit the Amazon VPC console page at VPC.

  • On the left navigation bar, click “NAT Gateway.”

  • Select NAT Gateway.

  • Click Action.

  • Click Delete NAT Gateway.

    Delete NAT Gateway

  • Type “delete.”

  • Click Delete to confirm the deletion of NAT Gateway.

    Confirm Deletion Confirm Deletion

Delete Elastic IP Address

  • Continue to delete Elastic IP Address.

  • Visit the Amazon VPC console page at VPC.

  • On the left navigation bar, click “Elastic IP.”

  • Select the Elastic IP Address we created.

  • Click Action.

  • Click Release Elastic IP Address.

  • Click Release.

    Release Elastic IP Release Elastic IP

Delete the EC2 Instance connection endpoint

  • Access to Endpoint transactions
  • Select Action, select Delete VPC endpoints
  • Enter delete Create VPC

Delete in the following order:

  • VPN Site to Site connection.

    VPN Site to Site VPN Site to Site

  • Virtual Private Gateway.

    Virtual Private Gateway Virtual Private Gateway Virtual Private Gateway Virtual Private Gateway

  • Customer Gateway.

    Customer Gateway Customer Gateway

  • VPC ASG VPN.

    VPC ASG VPN VPC ASG VPN

  • VPC ASG.

    VPC ASG VPC ASG