We will proceed to delete the resources in the following order:
Terminate EC2 instance:
Confirm termination.
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.
Type “delete.”
Click Delete to confirm the deletion of NAT Gateway.
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.
VPN Site to Site connection.
Virtual Private Gateway.
Customer Gateway.
VPC ASG VPN.
VPC ASG.