Schedule Test Environments Around Working Hours

Schedule Test Environments Around Working Hours

Schedule Test Environments Around Working Hours

This automation starts or stops the Test environment's EC2 instances according to configured weekday and working-hour windows, avoiding the need to keep development resources running outside scheduled usage. It verifies the resulting instance states and sends the outcome, including failures, to a team Slack channel.

Scheduling and Orchestration

Technical Automation

Cloud

Notification

Trigger

An incoming email or webhook event triggers evaluation of the current time and the configured Test environment instances.

Outcome

A Slack channel receives a report stating whether the Test environment was started or stopped and listing any instances whose transition was unsuccessful.

Trigger

An incoming email or webhook event triggers evaluation of the current time and the configured Test environment instances.

Outcome

A Slack channel receives a report stating whether the Test environment was started or stopped and listing any instances whose transition was unsuccessful.

Before

Team members likely had to remember to start the Test environment at the beginning of the workday and stop it afterward, then check each instance manually to confirm the requested state. Any failed transition also had to be identified and communicated to the team separately.

How it works

  1. Receive the trigger, evaluate the weekday and time against the configured Monday-to-Friday, 08:00-to-20:00 working period, and choose whether the environment should be running or stopped.
  2. Find the EC2 instances tagged as Test, apply the selected start or stop action to each instance, wait, and verify the resulting state.
  3. Compile successful and unsuccessful transitions into a status message and deliver it to the team Slack channel.

Workflow details

  • Trigger and timing: The workflow begins when an incoming email or webhook event is received. It is designed to support the twice-daily operating pattern described in the playbook, with the current date evaluated against Monday-to-Friday working days and the configured 08:00 to 20:00 working window.
  • Working-period decision: The automation determines whether the current time falls within a working day and working hours. During working time it follows the start path; outside working time it follows the stop path, without requiring a person to make the decision.
  • Instance discovery: The workflow searches the configured EC2 environment for instances tagged with the Test environment and builds the set of instance identifiers to process. Each identified instance is handled individually.
  • Lifecycle action and validation: During working hours, each targeted instance is started and then checked after a waiting period to identify instances that remain down. Outside working hours, each targeted instance is stopped and checked afterward to identify instances that remain running. Failed starts and stops are collected into separate status lists.
  • Team reporting: The workflow formats a status message with the current time, the affected environment, the number of unsuccessful transitions, and the relevant instance list. It posts that report to a Slack channel so the team can see whether the environment was started or stopped successfully and investigate exceptions.

What changed

The start-or-stop decision, instance lookup, state verification, failure collection, and team notification now happen as one automated flow. Human involvement shifts from performing the routine transition and follow-up checks to reviewing the Slack report when an instance fails to change state.

Work removed

Remembering the start and stop windows, locating the Test environment instances, issuing start or stop actions one by one, waiting for completion, checking each instance's final state, counting failures, and manually notifying the team.

Expected outcome

At least one recurring manual start/stop and verification cycle is removed per execution, with unsuccessful transitions surfaced in Slack; exact time savings depend on the number of targeted instances.

Less busywork. More possibility.

Let your agents handle the routine. Make room for what comes next.

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research โ€” straight to your inbox. No spam, unsubscribe anytime.

ยฉ 2026 Mindflow โ€” All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
รŽle-de-France

Less busywork. More possibility.

Let your agents handle the routine. Make room for what comes next.

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research โ€” straight to your inbox. No spam, unsubscribe anytime.

ยฉ 2026 Mindflow โ€” All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
รŽle-de-France

Less busywork. More possibility.

Let your agents handle the routine. Make room for what comes next.

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research โ€” straight to your inbox. No spam, unsubscribe anytime.

ยฉ 2026 Mindflow โ€” All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
รŽle-de-France
To embed a website or widget, add it to the properties panel.