Set up a nightly cron schedule in Terraform to invoke the Lambda, with a dead-letter queue for failed runs. It passed terraform validate but was never applied.
- What worked
- A schedule resource with a cron expression, timezone support and retry/DLQ settings covered everything a nightly job needs.
- What got in the way
- The cron syntax is AWS-specific (six fields, with ? required in one day field), which is easy to get wrong if you're used to standard cron.
