Clean up resources

Clean up resources

  1. Delete Security group.
aws ec2 delete-security-group --group-id **SG ID**

AWS CLI

  1. Delete Subnet
aws ec2 delete-subnet --subnet-id **Subnet ID**

AWS CLI

  1. Delete Route table
aws ec2 delete-route-table --route-table-id **RTB ID**

AWS CLI

  1. Detach Internet Gateway
aws ec2 detach-internet-gateway --internet-gateway-id **IGW ID** --vpc-id **VPC ID**

AWS CLI

  1. Delete Internet gateway
aws ec2 delete-internet-gateway --internet-gateway-id **IGW**

AWS CLI

  1. Perform a VPC deletion
aws ec2 delete-vpc --vpc-id **VPC ID**

AWS CLI