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:DeleteTable
lambda:DeleteFunction
s3:DeleteBucket
, s3:DeleteObject
apigateway:DELETE
cloudfront:UpdateDistribution
, cloudfront:DeleteDistribution
ses:DeleteIdentity
iam:DeleteRole
events:DeleteRule
, events:RemoveTargets
AWS Region: us-east-1
.Delete DynamoDB Table studentData
Confirm
, click Delete.studentData
table is no longer listed.Delete Lambda Functions
getStudentData
, insertStudentData
, BackupDynamoDBAndSendEmail
.delete
, click Delete.Delete S3 Buckets
student-management-website-2025
, student-backup-20250706
):
permanently delete
, click Empty.s3:DeleteBucket
, s3:DeleteObject
permissions or remaining objects.
Delete API Gateway student
confirm
, click Delete.student
API (including stage prod
, StudentApiKey
, StudentUsagePlan
) is no longer listed.Delete CloudFront Distribution
cloudfront:UpdateDistribution
, cloudfront:DeleteDistribution
permissions.
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).
Delete IAM Roles
LambdaGetStudentRole
, LambdaInsertStudentRole
, DynamoDBBackupRoleStudent
, click Delete role, confirm.Delete EventBridge Rule
DailyDynamoDBBackup
rule is no longer listed.events:DeleteRule
, events:RemoveTargets
permissions or ensure Lambda BackupDynamoDBAndSendEmail
has been deleted.
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