Giter Club home page Giter Club logo

Comments (2)

arieleeuw avatar arieleeuw commented on September 14, 2024

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.

prateek121 avatar prateek121 commented on September 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.