You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ttl-reaper: production deploy parameters are recorded nowhere in the repo — a bare make deploy silently regresses prod #474
The correct production parameter set for spawn-ttl-reaper-production exists only in the deployed CloudFormation stack. Nothing in the repo records it, so a plain make deploy from a clean checkout silently regresses production.
The gap
lambda/ttl-reaper/Makefile defaults, versus what is actually deployed:
There is no samconfig.toml, and .deploy-params.yaml is gitignored (.gitignore:34).
The last row is the sharpest: it would leave the #469 alarms present and green while wired to nothing — failure-shaped exactly like the blindness #469 was filed to remove.
#468 fixed a parameter being unreachable from the Makefile. This is the same defect one level out: unreachable from version control. sam deploy marks any parameter it is not given as UsePreviousValue, which masks the problem on an update of an existing stack — and hides it until the stack is recreated or deployed elsewhere, when the template Default silently wins instead.
Options
Committed samconfig.toml — the idiomatic SAM answer; sam deploy reads it with no Makefile change. All values here are ARNs/IDs, not secrets. NOTIFY_URL (a Slack webhook) must stay out.
Update the Makefile defaults — smaller diff, but conflates "default" with "what production runs" and does not generalise to staging.
Either way the environment-specific values want to live per-environment, since deploy-staging shares these defaults today.
Acceptance
A clean checkout can reproduce the current production configuration without reading the live stack.
No Slack webhook committed.
make deploy cannot silently disable the sweep or unwire the alarm topic.
Found while deploying #469 (PR #471): every value above had to be recovered with describe-stacks before it was safe to deploy at all.
Fixed by #650 and #869. make deploy in lambda/ttl-reaper no longer resets production:
It reads the live stack first (with an explicit --region) and merges it in with scripts/merge_deploy_params.py.
The live value wins for every parameter the caller did not set (LIVE-WINS), and an omitted parameter becomes UsePreviousValue.
Only Version and LogRetentionDays are always asserted.
Census tests check that each template parameter survives a plain redeploy.
Production redeploys at v0.139.1, v0.142.0 and v0.144.0 used exactly this path, and each diffed with zero drift except the intended parameters. A first deploy to a fresh stack still uses the template defaults, which is the intended behaviour.
Activity
scttfrdmn commentedon Oct 25, 2026
Fixed by #650 and #869.
make deployinlambda/ttl-reaperno longer resets production:--region) and merges it in withscripts/merge_deploy_params.py.UsePreviousValue.VersionandLogRetentionDaysare always asserted.Production redeploys at v0.139.1, v0.142.0 and v0.144.0 used exactly this path, and each diffed with zero drift except the intended parameters. A first deploy to a fresh stack still uses the template defaults, which is the intended behaviour.