Comments (2)
the easiest solution I would recommend is to:
-Use the default installation
-Create two schedules with names as below
-ec2-schedule -> start 9:00, stop 17:00
-rds-schedule -> start 8:50, stop 17:10
-Tag the ec2 and rds instances you want to control
-EC2 instances Schedule=ec2-schedule
-RDS instances Schedule=rds-schedule
RDS instance starts at 8:00, followed by ECS instances at 9:00.
ECS Instances stops at 17:00, followed by RDS instances at 17:10
from instance-scheduler-on-aws.
Thanks @arieleeuw
I happen to debug more to how/where the lambda handles request and in case of cloudwatch even handler there seems to be a issue with
scheduler logical id and how it parses or handles .
This is what I see where it's sort of hardCoded.
startswith("{}-SchedulerRule
So now my logicalIds are SchedulerRuleEC2/RDS instead of EC2/RDSSchedulerRule.
This basically works now, So Ive separated to two lambdas one for each service.
Earlier it was failing coz the cloudwatch events has its resource arn format ending with the name EC2SchedulerRule.
from instance-scheduler-on-aws.
Related Issues (20)
- Holiday shutdown HOT 1
- DynamoDB State DB miss reporting correct state of EC2 Instance HOT 5
- Provide a way to specify weekdays after an nth weekday HOT 1
- Skip the stopping of an instance when 'in use' HOT 1
- Invalid PhysicalResourceId and Received response status [FAILED] from custom resource HOT 5
- maximum accounts HOT 1
- ASG support HOT 3
- remote template URL not accessible when used in StackSet HOT 2
- override_status - replacement HOT 4
- Is there a way to have Instance Scheduler support a cron-like syntax to build dynamic schedules in the future HOT 8
- Organisation mode and exclude account HOT 3
- Feature Request - To support multiple one sided starts in a day HOT 1
- Test with Tow accounts in organization mode HOT 2
- General questions regarding version 1.5.6 HOT 1
- Namespace is required for spoke deployments HOT 1
- ASGHandler - ClientError (ValidationError) when using a high number of configured schedules HOT 2
- General questions regarding version 3.0.0 HOT 6
- ASGHandler - ClientError (AccessDenied) when AssumeRole HOT 2
- ASGHandler - High Memory needs (Runtime.ExitError) HOT 7
- Error in logs after enabling maintenance windows in v3.0.0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instance-scheduler-on-aws.