cronix-trigger-lambda

command
v0.0.0-...-b02e6dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

cronix-trigger-lambda is the AWS Lambda companion to the AWS EventBridge Scheduler backend.

EventBridge invokes this Lambda once per fire with a SpecFile JSON payload as the event. The Lambda:

  1. Unmarshals the SpecFile.
  2. Resolves secret refs (env: / file: / raw: locally; ssm: and secretsmanager: against AWS APIs).
  3. Reuses the existing trigger.Run shim to sign the canonical request and POST to the application URL — exactly the same code path the on-host crontab/systemd/k8s shim uses, so wire format stays byte-identical across backends.

Build (Lambda provided.al2 runtime, arm64):

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 \
  go build -tags lambda.norpc -ldflags="-s -w" -o bootstrap \
  ./cmd/cronix-trigger-lambda
zip cronix-trigger.zip bootstrap

Deploy: see deploy/aws/cronix-trigger-lambda/README.md.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL