procurement-ingest/buildspec.yml
Adam Moussa 36f49ae259
Add CI/CD pipeline and fix stack name to kebab-case (#3)
* Add CI/CD pipeline and fix stack name to kebab-case

CodePipeline V2 (po-ingest-pipeline) triggers CodeBuild on push
to main, running cdk deploy via buildspec.yml. Stack name changed
from PoIngestStack to po-ingest to match naming conventions.

* Add RETAIN policy to Secrets Manager secret

Prevents the Anthropic API key from being deleted if the stack
is ever removed. Matches the RETAIN policy on all other stateful
resources (DynamoDB tables, S3 bucket).
2026-05-01 19:17:19 -04:00

15 lines
436 B
YAML

version: 0.2
phases:
install:
runtime-versions:
python: 3.12
nodejs: 22
commands:
- npm install -g aws-cdk
- pip install -r cdk/requirements.txt
- pip install -r lambdas/email_processor/requirements.txt -t lambdas/email_processor/package/
- cp lambdas/email_processor/handler.py lambdas/email_processor/package/
build:
commands:
- cd cdk && cdk deploy --require-approval never