Skip to content

HariHaran0091/AWS-EventBridge-Lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Automated EC2 Volume Management with AWS EventBridge and Lambda

Overview

Managing cloud resources manually can be time-consuming, error-prone, and risky.
This project demonstrates a production-ready, event-driven approach to automate EC2 volume management using AWS EventBridge, Lambda, IAM, and CloudWatch.

The goal is to reduce manual effort, improve security, and optimize costs in a real cloud environment.


Key Features

  • Event-driven automation: EC2 volume events are captured automatically using EventBridge.
  • Idle volume cleanup: Lambda functions automatically delete unused volumes to save costs.
  • Security controls: Permission boundaries are applied to newly created IAM users to limit access.
  • Scheduled snapshots: Critical volumes are backed up regularly without manual intervention.
  • Centralized monitoring: CloudWatch captures logs and metrics from Lambda and EC2, providing visibility into events and actions.

Architecture Components

ChatGPT Image Jan 20, 2026, 09_49_49 AM

EC2 Instances

  • Represent production workloads
  • Events such as CreateVolume and DeleteVolume are monitored

EventBridge

  • Captures EC2 volume events
  • Triggers Lambda functions for logging and automation

Lambda Functions

  • Log Events: Captures EC2 volume events and stores them in CloudWatch
  • Delete Volumes: Automatically removes idle volumes

IAM and Permissions

  • Permission boundaries applied to new IAM users for secure operations

CloudWatch

  • Centralized logs and metrics
  • Custom workspaces for better monitoring and troubleshooting

Scheduled Snapshots

  • Automatic backup of critical volumes
  • Ensures data protection without manual effort

Benefits

  • Time-saving: Eliminates repetitive manual tasks
  • Cost-efficient: Automatically removes idle volumes
  • Secure: IAM permission boundaries enforce least privilege
  • Reliable: Event-driven automation ensures consistent operations
  • Observable: CloudWatch monitoring provides full visibility

Conclusion

This project is a practical example of how automation, monitoring, and security controls can work together to manage cloud resources efficiently.
It demonstrates real-world DevOps practices for scaling cloud operations while reducing risks and costs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages