Skip to content

Add Terraform for Augmentation Lambda#403

Open
nickclyde wants to merge 5 commits intomainfrom
nickclyde/augmentation-terraform
Open

Add Terraform for Augmentation Lambda#403
nickclyde wants to merge 5 commits intomainfrom
nickclyde/augmentation-terraform

Conversation

@nickclyde
Copy link
Copy Markdown
Member

@nickclyde nickclyde commented Mar 30, 2026

Summary

Closes #368

Adds Terraform resources to provision the augmentation Lambda and its supporting infrastructure, following the existing patterns for the TTC and index Lambdas.

  • ECR repository (ttc-augmentation-lambda) for the container image built from Dockerfile.augmentation
  • Lambda function with VPC config (only lambda_sg, no OpenSearch access needed), S3/region env vars, and lower memory/timeout defaults (512 MB, 300s) since no ML models are loaded
  • Variables for augmentation-specific config (augmentation_lambda_function_name, augmentation_lambda_memory_size, augmentation_lambda_timeout, augmentation_lambda_image_tag)
  • Outputs for ECR repository URL and Lambda function name
  • README updated to document the augmentation Lambda resources

The augmentation Lambda reuses the shared lambda_role IAM role (consistent with the TTC and index Lambdas). SQS trigger infrastructure is out of scope here and tracked in #369.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.93%. Comparing base (1a8e8dd) to head (3a6979e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #403   +/-   ##
=======================================
  Coverage   93.93%   93.93%           
=======================================
  Files          42       42           
  Lines        2160     2160           
=======================================
  Hits         2029     2029           
  Misses        131      131           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Collaborator

@robertandremitchell robertandremitchell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Terraform for Augmentation Lambda

3 participants