Clean up resources

Resource cleanup

We will proceed to delete resources in the following order

Terminate EC2 Instances.

  1. Terminate EC2 instance.
  • Access the Amazon EC2 console at the EC2 address.
  • On the left navigation bar, select Instances
  • Select all EC2 Instances related to the lab.
  • Select Instance state
  • Select Terminate instance clean
  1. Confirm termination. clean

Delete NAT Gateway, Elastic IP Address

  • Delete NAT Gateway and Elastic IP Address. AWS will collect money for wasted EIPs, so you need to check carefully to avoid unexpected cost deductions.
  • Access the Amazon VPC console page at the VPC address
  • On the left navigation bar, click NAT Gateway.
  • Select NAT Gateway.
  • Click Action.
  • Click Delete NAT Gateway. clean
  • Type delete.
  • Click Delete to confirm deletion of NAT Gateway clean clean

Delete Elastic IP Address

  • Continue deleting Elastic IP Address.
  • Visit the Amazon VPC console page at https://console.aws.amazon.com/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. clean clean

Delete EC2 Instance connect endpoint

  • Access to transaction Endpoint
  • Select Action, select Delete VPC endpoints
  • Enter delete clean clean

Continue doing the same and delete in the following order

  • VPN Site to Site connection.

  • clean clean

  • Virtual Private Gateway clean clean clean clean

  • Customer Gateway clean clean

  • Endpoint services clean clean

  • Network Load Balancer clean clean

  • Target Groups clean clean

  • Provider VPC clean clean

  • Consumer VPC clean clean

  • On-Premise VPC clean clean