After completing this exercise, we need to clean up all resources to avoid incurring unnecessary charges.
Go to the distribution list, select the distribution we created, and click Delete.
Next, in the API Gateway APIs list, select imga-api
and click Delete.
Go to VPC links, select the VPC link we created, and click Delete.
In the EC2 interface, scroll down to Load Balancer, select the NLB we created earlier
Next, in the target groups list, select prod-ec2
Also, in the EC2 interface, go to the EC2 instance list. We will terminate both EC2 instances we created.
In the NAT Gateway section, select the NAT Gateway we created
Once the NAT Gateway is fully deleted, go to the Elastic IP list, select the Elastic IP created with the NAT Gateway
The VPC Link created an ENI, which uses an Elastic IP. However, since we have deleted the VPC Link, the Elastic IP has also been deleted.
In the VPC interface’s peering connection list, select the peering connection we created at the beginning.
Next, in the VPC list, delete the two VPCs we created initially.
In the ECR interface, go to the repository we created and delete the Docker image first. Select the image and click Delete.
Now, we can delete the repository.
In the S3 Bucket list, we will delete the Buckets we created. First, the S3 Bucket for the website.
Confirm that you want to delete the objects in the bucket.
Select the bucket again and click Delete.
Confirm the deletion.
Similarly, for the remaining bucket, follow the same steps to delete it. We have now cleaned up all the resources from this workshop.