procurement-ingest/cdk
Adam Moussa 00d0d32337
Some checks are pending
Deploy / deploy (push) Waiting to run
fix(cdk): explicit Lambda LogGroups replace log_retention (INFRA-114) (#126)
First seahaven-prod deploy failed CREATE on the sender-auth MetricFilter:
it imported /aws/lambda/<fn> by name, which pre-existed in mgmt but not in
a fresh account. All 5 functions now get an explicit logs.LogGroup
(TWO_MONTHS, RETAIN) via common.make_function_log_group, and the metric
filter takes the construct so CFN orders it after the group exists.

Also removes the deprecated LogRetention custom resource and its
wildcard logs:PutRetentionPolicy role (CKV_AWS_111). Function roles keep
AWSLambdaBasicExecutionRole (verified in the synthesized template), so
log-write permissions are unchanged; cross-review's grant_write FIX was
a false positive on that basis. Supersedes PR #84, which hardcoded the
mgmt logs-CMK ARN and predates the common.py refactor.

mgmt collision note: these CREATEs would collide with the pre-existing
groups in mgmt; acceptable because the deploy secret now targets prod
and mgmt is frozen pending decommission.
2026-07-23 17:21:07 -04:00
..
app.py Merge workorder-ingest into unified procurement repo (#22) 2026-05-12 15:21:06 -04:00
cdk.json Initial commit: PO email ingestion pipeline 2026-04-07 12:12:30 -04:00
common.py fix(cdk): explicit Lambda LogGroups replace log_retention (INFRA-114) (#126) 2026-07-23 17:21:07 -04:00
po_stack.py fix(cdk): explicit Lambda LogGroups replace log_retention (INFRA-114) (#126) 2026-07-23 17:21:07 -04:00
requirements.txt chore(deps): bump boto3 to 1.43.51 (po/web_ui, po/site_extractor, wo/web_ui) and constructs to 10.7.1 (cdk) (#121) 2026-07-20 17:22:15 -04:00
wo_stack.py fix(cdk): explicit Lambda LogGroups replace log_retention (INFRA-114) (#126) 2026-07-23 17:21:07 -04:00