fix: raise unlock Lambda timeout to 20s (#29)

The door-unlock-api-unlock function hit its 10,000ms timeout on
2026-06-05 at 18:00 UTC during a cold start combined with a slow
LenelS2 Elements API call (REPORT: Duration 10000.00 ms, Status:
timeout). A concurrent attempt succeeded in 3639ms, confirming the
call path is healthy but lacks margin under cold-start + slow-API
conditions.

Raise the UnlockHandler timeout from 10s to 20s for additional
headroom. LockdownHandler (15s) and the poller (75s) are unchanged.
This commit is contained in:
Adam Moussa 2026-06-05 14:31:00 -04:00 • committed by GitHub
parent 1a3eb51628
commit 565d4af4fd

View file

@ -60,7 +60,7 @@ export class DoorUnlockStack extends cdk.Stack {
AUTH_TOKEN_PARAM: "/seahaven/door-unlock/auth-token",
DOOR_ID_PARAM: "/seahaven/door-unlock/door-id",
},
timeout: cdk.Duration.seconds(10),
timeout: cdk.Duration.seconds(20),
memorySize: 128,
logRetention: logs.RetentionDays.TWO_MONTHS,
});