Resource Cleanup
- Delete EC2 Instance
- Go to the Amazon EC2 Console
- Select Instances
- Select Moodle-Server, then choose Instance state
- Select Terminate instance
- Wait about 2 minutes for the instance to be terminated
- Delete VPC
- Go to the AWS VPC Console
- Select Your VPCs
- Select the VPC you want to delete
- Click Actions
- Select Delete
- CloudWatch Logs / Metrics
- Go to CloudWatch > Log groups
- Find the log groups you created (e.g.: /aws/lambda/…, /var/log/…)
- Delete unnecessary log groups.
- CloudWatch Logs may incur storage costs depending on log size and retention period.
- SNS Topics
- Go to SNS > Topics
- Find topics such as notify-inactive-students
- If no longer needed, Delete
- EventBridge Scheduler
- Go to Amazon EventBridge > Scheduler
- Find the Lambda login check schedule (Scheduler).
- If not needed, Delete.
- Lambda Function
- Go to Lambda > Functions
- Find functions such as check-inactive-users
- If not needed, Delete
- IAM Roles / Policies
- Go to IAM > Roles
- Find roles such as LambdaCheckInactiveUsersRole
- Double-check before deleting – only delete if you are sure it is not used