5. Clean Up

Clean up resources

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

Terminate the EC2 instance

  1. Access the EC2 dashboard.

    • Select Instances from the left navigation bar.
    • Select the instance with the name tag Inference Server.
    • Select Instance State.
    • Select Terminate Instance.

    Terminate EC2 Terminate EC2

  2. Confirm the termination

    • Select Terminate (delete).

    Terminate EC2 Terminate EC2

Delete the Public Subnet

  1. Go to the VPC dashboard.

    • Select Subnets from the left navigation bar.
    • Select the subnet with the name tag subnet-inference-1.
    • Select Actions.
    • Select Delete Subnet.

    Delete Subnet Delete Subnet

    • Type ‘delete’ in the confirmation box and select Delete.

    Confirm Delete Subnet Confirm Delete Subnet

Delete the Route Table

  1. Select Route tables from the left navigation bar.

    • Select the route table with the name tag table-inference-1.
    • Select Actions.
    • Select Delete route table.

    Delete Route Table Delete Route Table

    • Type ‘delete’ in the confirmation box and select Delete.

    Confirm Delete Route Table Confirm Delete Route Table

Delete the VPC

  1. Select Your VPCs from the left navigation bar.

    • Select the VPC with the name tag vpc-inference-1.
    • Select Actions.
    • Select Delete VPC.

    Delete VPC Delete VPC

    • Type ‘delete’ in the confirmation box and select Delete.

    Confirm Delete VPC Confirm Delete VPC

Delete the S3 bucket

  1. Empty the bucket. At the S3 Console.

    • Select the bucket with the name inference-bucket-1.
    • Select Empty.

    S3 Console S3 Console

    • Type ‘permanently delete’ in the confirmation box and select Empty.
    • Select Delete.
    • Once the bucket is empty, select Exit.

    Empty S3 Bucket Empty S3 Bucket

  2. Delete the bucket.

    • Select the bucket with the name inference-bucket-1.
    • Select Delete.

    Delete S3 Bucket Delete S3 Bucket

    • Type bucket-nlp-models-1 in the confirmation box
    • Select Delete bucket.

    Confirm Delete S3 Bucket Confirm Delete S3 Bucket