Clean up resources

We will proceed with the following steps to delete the resources we created in this lab.

Deleting ASG

  1. Go to EC2 service management interface
  • Select Auto Scaling Group.
  • Select ASGForEC2.
  • Select Action.
  • Select Delete, then enter delete to confirm.
  • When deleting an ASG, all instances managed by the ASG are deleted.

Clean

Deleting ALB

  1. Go to EC2 service management interface
  • Select Load balancer.
  • Select ALBForWS1.
  • Select Action.
  • Select Delete, then fill in confirm to confirm.

Clean

Delete RDS

  1. Access the RDS service management interface
  • Select Databases.
  • Select database-1.
  • Select Action.
  • Select Delete.

Clean

  • Uncheck Create final snapshot and Retain automated backups, select I acknoledge … to confirm deleting the database.
  • Fill in delete me.

Clean

  1. Access the VPC service management interface.
  2. Delete NAT gateways.
  • Select NAT gateways.
  • Select each Nat gateway.
  • Select Action.
  • Select Delete, then enter delete to confirm.
  • Do the same with the remaining Nat gateway.

Clean

  1. Delete Elastic IP addresses
  • Select Elastic IPs.
  • Select both Elastic IPs.
  • Select Action.
  • Select Release Elastic IP addresses, then enter Release to confirm.

Clean

  1. Delete Internet gateway
  • Select Internet gateway.
  • Select WorkShop01-igw.
  • Select Detach from VPC.
  • Select Detach internet gateway.

Clean

  • Select Internet gateway.
  • Select WorkShop01-igw.
  • Select Delete internet gateway, then enter delete to confirm.

Clean

  1. Delete the connection of routing tables with subnets
  • Select Route tables.
  • Select the routing table.
  • Select Action.
  • Select Edit subnet associations.

Clean

  • Uncheck the associated subnets.
  • Select Save associations.
  • Do the same with the remaining routing tables.

Clean

  1. Delete VPC
  • Select Your VPCs.
  • Select WorkShop01-vpc.
  • Select Action.
  • Select Delete VPC, then enter delete to confirm.

Clean

Check costs and invoices

  1. Access the Billing and Cost Management interface.

Clean

  1. Check the costs incurred when using services on AWS.

Clean