← Back to insights

AWS operations

Scheduling non-production AWS workloads

Development and test environments are not always needed around the clock. A sensible schedule can reduce unnecessary compute use, provided the shutdown process respects the people, services, and data that depend on those environments.

Many development, test, training, and demonstration environments spend long periods waiting for someone to use them. The systems remain powered on because it is convenient, because nobody owns the schedule, or because the team is understandably cautious about turning off something that might be needed.

That can leave compute resources running when there is no work for them to do. Scheduling can help, but the aim is not to shut down everything outside office hours. It is to identify which resources can safely stop, agree on when they should be available, and make the process predictable for the teams that use them.

Start with the workload, not the schedule

Before creating automation, find out how each environment is used. Talk to the developers, testers, product owners, and support staff who rely on it. Review utilization and billing data, deployment windows, scheduled tests, demos, maintenance work, and any after-hours support commitments.

Some environments are good candidates: isolated development instances, temporary test systems, training environments, and non-production services used mainly during normal working hours. Other systems may need to remain available because they support automated builds, overnight tests, integrations, shared services, or teams working across time zones.

Do not assume that a resource is unused because it has low CPU utilization. It may be waiting for a scheduled job, accepting occasional integration traffic, or providing a service that another environment depends on. Check the application behavior and ownership before putting it on a schedule.

Choose what can safely stop

Amazon EC2 instances are a common starting point. Non-production application servers and development machines can often be stopped when they are not needed and started before the team begins work. EC2 Auto Scaling groups can also be adjusted to match a planned schedule where the application is designed for it.

Some Amazon RDS databases can be stopped temporarily when they support development or testing. This needs more care. RDS has service-specific limits and restart behavior, and storage and backup charges continue while a database instance is stopped. A stopped database is not the same as a deleted database, and it does not eliminate every cost associated with it.

Other services have different lifecycle and billing models. A scheduler that works for EC2 should not be assumed to work for a container platform, managed database cluster, cache, or shared service in the same way. Check the service's current documentation and cost model before adding it to an automation workflow.

Stopping compute does not stop every charge.

EC2 EBS volumes continue to incur storage charges while an instance is stopped. Instance-store data is lost when an instance is stopped, and an automatically assigned public IPv4 address can change when the instance starts again. Keep these details in the savings estimate and recovery plan.

Use explicit opt-in tags

Tags provide a practical way to identify which resources a schedule is allowed to control. For example, a team might apply a tag such as Schedule=nonprod-hours to approved development resources and record an owner or support contact alongside it.

Make the default behavior safe: resources without the approved tag should be left alone. Do not rely on a broad rule that stops anything whose name looks like a test server. Names are not a reliable control, and an overlooked production dependency can cause an outage.

Document who can apply or remove scheduling tags, who approves exceptions, and how a team can request that an environment remain available. Keep production, shared infrastructure, recovery systems, and anything with an unclear owner outside the schedule until its dependencies are understood.

Use a managed solution or build a small workflow

AWS provides Instance Scheduler on AWS, a solution that uses resource tags and AWS services to start and stop supported resources according to schedules. It is worth evaluating before writing and maintaining a custom scheduler.

A custom approach can make sense when the environment has application-specific dependencies or approval steps. A common pattern uses Amazon EventBridge Scheduler to trigger AWS Lambda functions that check the resource tags and perform approved start or stop actions. The function should have only the permissions it needs, and its actions should be logged and monitored.

For either approach, build in the operational details:

  • Time zone: Set the schedule in the team's intended local time and account for daylight-saving changes. EventBridge Scheduler supports time zones for schedule expressions.
  • Startup order: Start dependencies before applications that need them. Stop application workloads before databases or supporting services where that ordering matters.
  • Exceptions: Provide a documented way to keep an environment running for a release, test, incident, or customer demonstration.
  • Retries and alerts: Detect failed start or stop actions and notify the person responsible. A schedule that silently fails is difficult to trust.
  • Audit trail: Record which resources were changed, when the action happened, and which schedule or rule initiated it.
  • Ownership: Assign an owner to each schedule and review tags as teams and projects change.

Protect access and recovery

Scheduling should not weaken security or recovery practices. Do not disable backups, monitoring, logging, or security controls just to reduce a bill. Confirm that the environment can restart cleanly, that any required data remains available, and that credentials, secrets, and network access still work after startup.

For EC2, check whether applications depend on an automatically assigned public address, local instance-store data, or a startup sequence that assumes the machine never stops. For databases, confirm the impact on connections, scheduled jobs, backups, and services that expect the database to be available. Keep a manual recovery path while the schedule is being introduced.

Introduce the schedule in stages

  1. Build an inventory. List candidate resources, owners, dependencies, current operating patterns, and the portion of the bill associated with compute.
  2. Agree on availability. Confirm the hours when each team needs the environment, including release work, testing, support, and time-zone differences.
  3. Start with a small group. Use a limited set of clearly owned resources and keep production and shared services out of scope.
  4. Run in report-only mode where possible. Review the proposed actions with resource owners before allowing automated changes.
  5. Enable the schedule and watch it. Confirm that resources stop and start as expected, dependent applications recover, and users can work when the environment is scheduled to be available.
  6. Review the result. Compare compute usage and the relevant service costs before and after. Record exceptions and adjust the schedule when it interferes with legitimate work.

Measure the savings that actually occurred

The savings depend on which resources stop, how long they remain stopped, and which charges continue. For EC2, the compute portion may fall while attached storage, snapshots, public addresses, monitoring, and other services continue to generate costs. For RDS, instance-hours may be avoided during a temporary stop, but storage and backup charges remain.

Compare the affected resources before and after the change rather than applying a broad percentage to the entire AWS bill. A useful review explains what changed, what remained billable, how often exceptions occurred, and whether the new schedule caused any lost engineering time.

Make the schedule fit the team

Scheduled shutdowns work best when they are treated as an operating process, not just a cost trick. The resource owner should understand the schedule, know how to request an exception, and have confidence that the environment will be ready when needed.

Start with workloads that are clearly non-production and straightforward to recover. Measure the result, listen to the people using the systems, and expand only when the process is reliable. That approach keeps cost control from becoming another source of operational trouble.

Further AWS reading