Skip to content

Workers & Cron

Open in ChatGPTOpen in Claude

Not every Lambda sits behind an API. The worker starter and the WorkerStack abstraction exist for background processing and scheduled jobs — a function with an SQS event source, or a function on an EventBridge schedule, with no API surface at all.

A WorkerLambdaConfig (kind: "worker") describes a function driven by an event source rather than a route. Pair it with an AtfSqs queue and the DLQ-by-default posture gives you a place to inspect failures for free.

A CronLambdaConfig (kind: "cron") describes a function on an EventBridge schedule. Author the schedule in the config; the framework wires the rule and target.

Terminal window
axs add lambda reports/nightly --kind cron
axs add lambda queue/consumer --kind worker

See the axs add lambda reference — --kind accepts api | worker | cron | edge.

If you want a single standalone Lambda and nothing else — no API, no event source, just a function that exists — the bare starter scaffolds exactly that with raw CDK, ready to grow. See Create a Project for the starter list.

© 2026 Axis Tech. Powered by axis-tech.co.