Clean Up

Congratulations on completing the workshop and smoothly running your pipelines and AWSome Books on AWS services! Now, let’s clean up your AWS resources to prevent any unnecessary charges.

1. Go to AWS API Gateway console.

2. In the left sidebar,

  • Choose APIs.
  • Choose awsome-books APIs.
  • Click Delete.

0001

3.

  • Enter confirm.
  • Click Delete.

0002

4. In the left sidebar,

  • Choose VPC links.
  • Select vpc-link-nlb
  • Click Delete.

0003

5. Click Delete.

0004

6. Go to AWS ECS console.

7. In the left sidebar,

  • Select Clusters.
  • Click fcj cluster.

0005

8. Click Delete cluster.

0006

9.

  • Enter delete fcj.
  • Click Delete.

0007

10. Go to AWS EC2 console.

11. In the left sidebar,

  • Select Target Groups.
  • Choose blue-tg-fcj-awsome-books and tg-alb target groups.
  • Expand the Actions dropdown.
  • Click Delete.

0008

12. Click Yes, delete.

0009

13. In the left sidebar,

  • Select Load Balancers.
  • Choose fcj-nlb and fcj-alb load balancers.
  • Expand the Actions dropdown.
  • Click Delete load balancer.

00010

14.

  • Enter confirm.
  • Click Delete.

00011

15. Go to AWS RDS console.

16. In the left sidebar,

  • Select Databases.
  • Choose awsome-books database.
  • Expand the Actions dropdown.
  • Click Delete.

00012

17.

  • Turn off Create final snapshot.
  • Turn off Retain automated backups.
  • Enable I acknowledge that upon instance deleteion, automated backups, including system snapshots and point-in-time recovery, will no longer be available.
  • Enter delete me.
  • Click Delete.

00013

18. In the left sidebar,

  • Click Subnet groups.
  • Select awsome-books subnet group.
  • Click Delete.

00014

19. Click Delete.

00015

20. Go to AWS VPC console.

21. In the left sidebar,

  • Select Endpoints.
  • Select ecr-dkr-endpoint, ecr-api-endpoint, s3-endpoint, and secretsmanager-endpoint.
  • Expand the Actions dropdown.
  • Click Delete VPC endpoints.

00016

22.

  • Enter delete.
  • Click Delete.

00017

23. In the left sidebar,

  • Select Your VPCs.
  • Select fcj VPC.
  • Expand the Actions dropdown.
  • Click Delete VPC.

00018

24.

  • Enter delete.
  • Click Delete.

00019

25. Go to AWS ECR console.

26. In the left sidebar,

  • Expand the Private registry dropdown.
  • Click Repositories.
  • Select awsome-books repository.
  • Click Delete.

00020

27. Click Delete.

00021

28. Go to AWS Chatbot console.

29. In the left sidebar,

  • Select Configured clients.
  • Select Slack - fcj.

00022

30. In the Slack Workspace details page,

  • Select fcj-slack channel.
  • Click Delete.

00023

31. Click Delete.

00024

32. Click Remove workspace configuration.

00025

33.

  • Enter your Workspace ID.
  • Click Remove workspace configuration.

00026

34. Go to AWS IAM console.

35. In the left sidebar,

  • Select Roles.
  • Select chatbot-role, ecsCodeDeployRole, ecsTaskExecutionRole, ecsTaskRole, and gha-role roles.
  • Click Delete.

00027

36.

  • Enter delete.
  • Click Delete.

00028

37. In the left sidebar,

  • Select Policies.
  • Filter with value ecsTaskRolePolicy.
  • For Filter by Type, select Customer managed.
  • Select ecsTaskRolePolicy policy.
  • Click Delete.

00029

38.

  • Enter ecsTaskRolePolicy.
  • Click Delete.

00030

39. Repeat the step 37 and 38 but with gha-policy value instead.