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:
- Unmarshals the SpecFile.
- Resolves secret refs (env: / file: / raw: locally; ssm: and secretsmanager: against AWS APIs).
- 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.
Click to show internal directories.
Click to hide internal directories.