How yash-sonani/lambdacodetostopec2 works
Project Type: AWS Serverless Automation Tool
Main Components
a. AWS Services:
• AWS Lambda (central component)
• Amazon EC2 Instances (target resources)
• Amazon CloudWatch Events/EventBridge (trigger mechanism)
• IAM Role/Permissions (security layer)
Component Relationships
• Lambda as the processing unit
• EC2 instances as the target resources
• IAM roles connecting Lambda to EC2 services
Important Details
a. Annotations:
• Cron schedule: "01 15 * * ? *"
• EC2 tag filtering logic
• Python 3.7 runtime
b. Process Flow:
• Sequential flow of the automation
• Tag-based filtering mechanism
Additional Elements
• Scheduled trigger timing (9:01 PM daily)
• Tag-based filtering mechanism
• Service interactions