This open-source project provides an automated shutdown and startup solution for AWS EC2,AutoScaling groups and RDS resources. It's designed to help organizations reduce costs and minimize their carbon footprint by automatically managing resource usage during off-hours and weekends.
- Event-driven architecture for real-time schedule updates based on resource tags.
- Centralized approach for larger org and business units while keeping implementation cost low.
- Support for EC2, RDS, DocumentDB, and AutoScaling Groups
- Customizable shutdown schedules using resource tags
- Easy integration with existing AWS environments
- An alternative to instance-scheduler-on-aws
- Cost Optimization: Automatically shut down idle resources to reduce AWS bills
- Environmental Impact: Minimize carbon footprint by reducing unnecessary compute usage
- Flexibility: Customize schedules to fit your team's working hours and needs
- Mimimum Efforts: Minimum effort required from teams/users as it uses a centralized approach
The solution uses AWS resource tags to define shutdown and startup schedules. When you apply or modify these tags, the system automatically updates the corresponding schedules in real-time.
-
Weekend Auto-shutdown:
weekendautoshutdown
Format:WKND_<StartDay><StartTime>_<EndDay><EndTime>_UTC
Example:WKND_FR20_MO07_UTC
(Shutdown Friday 8PM, restart Monday 7AM UTC) -
Daily Auto-shutdown:
dailyautoshutdown
Format:DD_<StartDay><StartTime>_<EndDay><EndTime>_UTC
Example:DD_MO20_TH07_UTC
(Shutdown Monday 8PM, restart Thursday 7AM UTC)
- Clone this repository
- Set up the necessary AWS permissions (detailed in
SETUP.md
) - Deploy the solution to your AWS account (instructions in
DEPLOYMENT.md
) - Start tagging your resources!
- Exercise caution when using in production environments
- May not be suitable for EKS clusters with Karpenter or Cluster Autoscaler
- For RDS, be aware of potential conflicts with maintenance windows
We welcome contributions! Please see our CONTRIBUTING.md
file for details on how to get involved.
This project is licensed under the MIT License - see the LICENSE
file for details.
If you encounter any issues or have questions, please file an issue on the GitHub repository.
Remember: Always follow AWS best practices for security and resource management when using this tool.