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.
3.
- Enter
confirm
. - Click Delete.
4. In the left sidebar,
- Choose VPC links.
- Select vpc-link-nlb
- Click Delete.
5. Click Delete.
6. Go to AWS ECS console.
7. In the left sidebar,
- Select Clusters.
- Click fcj cluster.
8. Click Delete cluster.
9.
- Enter
delete fcj
. - Click Delete.
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.
12. Click Yes, delete.
13. In the left sidebar,
- Select Load Balancers.
- Choose fcj-nlb and fcj-alb load balancers.
- Expand the Actions dropdown.
- Click Delete load balancer.
14.
- Enter
confirm
. - Click Delete.
15. Go to AWS RDS console.
16. In the left sidebar,
- Select Databases.
- Choose awsome-books database.
- Expand the Actions dropdown.
- Click Delete.
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.
18. In the left sidebar,
- Click Subnet groups.
- Select awsome-books subnet group.
- Click Delete.
19. Click Delete.
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.
22.
- Enter
delete
. - Click Delete.
23. In the left sidebar,
- Select Your VPCs.
- Select fcj VPC.
- Expand the Actions dropdown.
- Click Delete VPC.
24.
- Enter
delete
. - Click Delete.
25. Go to AWS ECR console.
26. In the left sidebar,
- Expand the Private registry dropdown.
- Click Repositories.
- Select awsome-books repository.
- Click Delete.
27. Click Delete.
28. Go to AWS Chatbot console.
29. In the left sidebar,
- Select Configured clients.
- Select Slack - fcj.
30. In the Slack Workspace details page,
- Select fcj-slack channel.
- Click Delete.
31. Click Delete.
32. Click Remove workspace configuration.
33.
- Enter your Workspace ID.
- Click Remove workspace configuration.
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.
36.
- Enter
delete
. - Click Delete.
37. In the left sidebar,
- Select Policies.
- Filter with value
ecsTaskRolePolicy
. - For Filter by Type, select Customer managed.
- Select ecsTaskRolePolicy policy.
- Click Delete.
38.
- Enter
ecsTaskRolePolicy
. - Click Delete.
39. Repeat the step 37 and 38 but with gha-policy
value instead.