Resource Cleanup

  1. 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
  1. Delete VPC
  • Go to the AWS VPC Console
  • Select Your VPCs
  • Select the VPC you want to delete
  • Click Actions
  • Select Delete
  1. 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.
  1. SNS Topics
  • Go to SNS > Topics
  • Find topics such as notify-inactive-students
  • If no longer needed, Delete
  1. EventBridge Scheduler
  • Go to Amazon EventBridge > Scheduler
  • Find the Lambda login check schedule (Scheduler).
  • If not needed, Delete.
  1. Lambda Function
  • Go to Lambda > Functions
  • Find functions such as check-inactive-users
  • If not needed, Delete
  1. 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