Use environment variables for S3 bucket prefixes#395
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #395 +/- ##
==========================================
- Coverage 93.75% 93.73% -0.02%
==========================================
Files 42 42
Lines 2145 2156 +11
==========================================
+ Hits 2011 2021 +10
- Misses 134 135 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
BradySkylight
approved these changes
Mar 30, 2026
Collaborator
BradySkylight
left a comment
There was a problem hiding this comment.
Nice work... some clean-up along the way with some good naming conventions and using env variables. 🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR standardizes the use of environment variables for S3 bucket and key prefixes, refactors S3 client usage for efficiency and testability, and updates tests and helper functions accordingly.
Lambda Handler (packages/lambda-handler/src/lambda_handler/lambda_handler.py):
TTC Lambda (packages/text-to-code-lambda/src/text_to_code_lambda/lambda_function.py):
Augmentation Lambda (packages/augmentation-lambda/src/augmentation_lambda/lambda_function.py):
Augmentation main.py (packages/augmentation/src/augmentation/main.py):
Terraform:
Tests: Updated all test fixtures and assertions for the single-bucket + prefix pattern. All 27 tests pass across all three packages.
Related Issues
Closes #349