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 make deploy silently resets out-of-band function env edits #1639
make -C lambda/ttl-reaper deploy resets any function env var that was changed on the Lambda directly, out-of-band from the stack parameters, back to the stack parameter's value. It does so silently. The pre-deploy "deploy will CHANGE" summary compares only the stack parameters, so it showed nothing.
Evidence (v0.166.0 deploy, 2026-11-14)
On 2026-11-12, REAPER_DNS_LEASE_EXPIRE=true was set on spawn-ttl-reaper-production with update-function-configuration. The stack parameter DnsLeaseExpire stayed false. The before and after parameter snapshots both show false.
After the SAM deploy, the function env diff was REAPER_DNS_LEASE_EXPIRE: true → false, and the parameter diff showed only Version.
Proposed fix
Before sam deploy, have the Makefile compare the live get-function-configuration env with the env the template would render from .deploy-params.yaml. On any difference, fail with a message naming the variable and the stack parameter to set, for example DNS_LEASE_EXPIRE=true. Skip this when ALLOW_ENV_RESET=1. It is the same class of problem as the existing parameter-drift guard, applied to direct function edits.
Interim state
A change set (lease-expire-true) that sets the parameter DnsLeaseExpire=true is staged on the stack. Its only property change is the env var.
Activity