ฮป Lambda Version Diff
Compare Lambda function versions, view history, and verify alias parity ยท spaceduckling-api
Prod Alias
v39
Current prod alias target
Invoked Version
โ€”
From /beak/system/status
Parity
โ€”
Alias vs invoked
Last Modified
โ€”
Lambda function
๐Ÿ“‹ Version History
v39
DG-033: /beak/pageview route
2026-03-21 05:40PROD
v38
DC-038: lambda_alias_version field
2026-03-21 05:33PREV
v37
SD-034/035/038: Multi-fix batch
2026-03-21 05:31
v36
SD-034: AgentMail cert email
2026-03-21 05:24
v35
SCHEMA: Birth cert metadata enrichment
2026-03-21 05:18
๐Ÿ” Diff View โ€” v38 โ†’ v39
--- v38 2026-03-21 05:33:12 UTC +++ v39 2026-03-21 05:40:07 UTC @@ routes/pageview.js (new file) @@ +'use strict'; +const AWS = require('aws-sdk'); +const dynamo = new AWS.DynamoDB.DocumentClient(); + +// DG-033: Pageview analytics endpoint +module.exports = async (event) => { + const { page, referrer, session_id } = JSON.parse(event.body || '{}'); + await dynamo.put({ TableName: process.env.AUDIT_LOG_TABLE, + Item: { pk: 'pv#' + Date.now(), sk: session_id || 'anon', + page, referrer, ts: new Date().toISOString(), type: 'pageview' } + }).promise(); + return { statusCode: 200, body: JSON.stringify({ ok: true }) }; +}; @@ index.js @@ - // v38: No pageview route + const pageviewHandler = require('./routes/pageview'); + app.post('/beak/pageview', pageviewHandler); // No other changes between v38 and v39 // Lambda config unchanged: memory=128MB, timeout=30s
๐Ÿ“Š Runtime Config
Function namespaceduckling-api
Runtimeโ€”
Memory128 MB
Timeout30s
Regionus-east-1
Prod aliasprod โ†’ v39
Concurrencyโ€”
Last modifiedโ€”
# Promote alias to specific version:
aws lambda update-alias --function-name spaceduckling-api --name prod --function-version 39 --region us-east-1