Schedule your instances to be toggled on and off. A simple tool for simple use cases.
new LightsoutConstruct(this, 'test', {
cronSchedules: [morningSchedule, eveningSchedule]
})
Configure schedules with CloudWatch Event Rules.
Remembering all hours are in UTC.
const morningSchedule = {
day: '*',
minute: '0',
hour: '17',
}
Use any describeInstances filters.
filters: [
{
Name: "tag:Purpose",
Values: [
"test"
]
}
]
Lambda Toggle function supports a DRY_RUN environment variable.
- Avoid alarms on instances started/stopped
- standard aws-cdk setup