Objective: Clean up all AWS resources of the serverless system (S3, Lambda, API Gateway, CloudFront, DynamoDB, SES, EventBridge, IAM) to avoid unnecessary costs after completing the deployment and testing of the student management website. Ensure all related resources are deleted, including DynamoDB tables, Lambda functions, S3 Buckets, API Gateway, CloudFront Distribution, SES identities, IAM Roles, and EventBridge Rule.
studentData (section 3).getStudentData, insertStudentData, BackupDynamoDBAndSendEmail (sections 3.1–3.3, 8.1).student-management-website-2025, student-backup-20250706 (sections 2.4, 6.1–6.5).student, stage prod, StudentApiKey, StudentUsagePlan (sections 4.1–4.9).StudentWebsiteDistribution (sections 7.1–7.3).no-reply@studentapp.com, admin@studentapp.com, nguyentribaothang@gmail.com) (section 3).LambdaGetStudentRole, LambdaInsertStudentRole, DynamoDBBackupRoleStudent (section 6.5).DailyDynamoDBBackup (section 8.2).Make sure you have completed sections 2.4, 3.1–3.3, 4.1–4.9, 5, 6.1–6.5, 7.1–7.3, 8.1–8.2 and tested the results (section 9). Your AWS account needs permissions:
dynamodb:DeleteTablelambda:DeleteFunctions3:DeleteBucket, s3:DeleteObjectapigateway:DELETEcloudfront:UpdateDistribution, cloudfront:DeleteDistributionses:DeleteIdentityiam:DeleteRoleevents:DeleteRule, events:RemoveTargets
AWS Region: us-east-1.Delete DynamoDB Table studentData
Confirm, click Delete.studentData table is no longer listed.
Figure 1: Delete DynamoDB table.Delete Lambda Functions
getStudentData, insertStudentData, BackupDynamoDBAndSendEmail.delete, click Delete.
Figure 5: Delete Lambda functions.Delete S3 Buckets
student-management-website-2025, student-backup-20250706):
permanently delete, click Empty.s3:DeleteBucket, s3:DeleteObject permissions or remaining objects.
Figure 6: Delete S3 buckets.Delete API Gateway student
confirm, click Delete.student API (including stage prod, StudentApiKey, StudentUsagePlan) is no longer listed.
Figure 7: Delete API Gateway.
Figure 8: Confirm API deletion.
Figure 9: API deleted.
Figure 7: Delete API Gateway.
Figure 8: Confirm API deletion.
Figure 9: API deleted.Delete CloudFront Distribution
cloudfront:UpdateDistribution, cloudfront:DeleteDistribution permissions.
Figure 10: Delete CloudFront Distribution.Delete SES Verified Identities
nguyentribaothang@gmail.com, no-reply@studentapp.com, admin@studentapp.com (if present), click Delete identity.insertStudentData or DynamoDBBackup has been deleted (step 2).
Figure 11: Delete SES identities.Delete IAM Roles
LambdaGetStudentRole, LambdaInsertStudentRole, DynamoDBBackupRoleStudent, click Delete role, confirm.
Figure 12: Delete IAM roles.Delete EventBridge Rule
DailyDynamoDBBackup rule is no longer listed.events:DeleteRule, events:RemoveTargets permissions or ensure Lambda BackupDynamoDBAndSendEmail has been deleted.
Figure 13: Delete EventBridge Rule.All AWS resources (studentData, Lambda functions, S3 Buckets, student API, CloudFront StudentWebsiteDistribution, SES identities, IAM Roles, EventBridge Rule) have been deleted, ensuring no further costs are incurred. The serverless system has been completely cleaned up.
Next step: Check the AWS Billing Dashboard to verify there are no remaining charges or start deploying a new