AWS cost playbook

Should Scheduled EC2 Jobs Move to Lambda? A Cost and Runtime Checklist

Small scheduled jobs often keep an EC2 instance running all day even though the useful runtime is only minutes or seconds.

Prepared by Zeptrix CloudPrune ยท Updated July 24, 2026

Assess EC2 to Lambda savings
Read-only scan No AWS changes made Impact and rollback notes

The cost signal

Small scheduled jobs often keep an EC2 instance running all day even though the useful runtime is only minutes or seconds. CloudPrune can compare observed job runtime, memory needs, schedule frequency, root disk size, and app dependencies before suggesting a Lambda migration.

Review method
Read-only evidence first, followed by owner review, rollback planning, and post-change validation.
Reference
AWS Lambda pricing AWS pricing

How to verify manually

  1. Open AWS Billing and Cost Explorer to confirm the service driving the spend.
  2. Use the AWS console view for the affected service to identify candidate resources.
  3. Run a read-only AWS CLI inventory command and export the resource IDs before changing anything.
  4. Compare age, attachment, traffic, retention, and recent usage signals before deciding on cleanup.

Impact and rollback

  1. Classify whether the action can affect production traffic, data retention, compliance, or incident response.
  2. Prefer dry-run review first. For storage deletion, create or verify a snapshot/export when rollback matters.
  3. Schedule changes with an owner and a validation window. Stop if the blast radius is unclear.
  4. Keep the previous configuration or snapshot reference until post-change metrics are stable.

How CloudPrune helps

CloudPrune starts read-only, scans AWS evidence, stores the recommendation, and shows savings context with risk, downtime, impact analysis, and safer execution steps.

Assess EC2 to Lambda savings

Questions people ask

When is Lambda cheaper than EC2 for scheduled work?

Lambda is often cheaper when jobs are short, infrequent, stateless, and fit within Lambda runtime, memory, storage, and networking constraints.

What data is needed for the decision?

You need job frequency, p95 and max runtime, memory needs, network dependencies, package size, stateful storage needs, and the EC2 instance cost being replaced.

What should not move first?

Avoid moving long-running, stateful, latency-sensitive, or dependency-heavy jobs until the runtime and rollback path are proven.

Related CloudPrune resources