Repository navigation
List settings per Lambda handler, and release 3.1.1 - #290
Merged
Merged
Conversation
settings.contract.json now keeps its list under functions["run.sh"].settings, keyed by the handler string the Lambda deployment uses, so a deployment's pull request check can match each function in its template to the settings that function may set. It also lists AWS_LAMBDA_EXEC_WRAPPER and AWS_LWA_ENABLE_COMPRESSION, which the Lambda deployment sets for the Lambda Web Adapter. The settings the app reads are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
The This is the string here because the check finds each function's contract entry by its Handler. The shared contract planned across apps says the keys are handler strings exactly as the template gives them. verifier-plus's template says Handler: run.sh, so its key is run.sh. Why use the handler as the key:
|
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.
What changed
settings.contract.jsonnow lists settings under the Lambda handler that reads them, so the platform repo's pull request check can match each function in its template to the settings that function may set.settingstofunctions["run.sh"].settings. The key is the handler string exactly as the Lambda deployment's template gives it. Every entry and field is unchanged. The Docker image reads the same list.AWS_LAMBDA_EXEC_WRAPPER:/opt/bootstrap, required on Lambda, read by Lambda's Node.js runtime.AWS_LWA_ENABLE_COMPRESSION: optional, defaultfalse, read by the adapter.readBygains two values for them,adapterandlambda-runtime.run.sh, and that the two adapter entries are set by the template and unused in Docker. The "required on Lambda" tests now cover only the settings the app reads.The platform template will also stop setting
NODE_ENV, which the Next.js standalone server sets toproductionitself. That change is in the platform repo, not here.Validated locally
npm test: 178 passed, 33 skipped (the MongoDB and DynamoDB store tests, which CI runs against services)npx tsc --noEmit: cleanDeferred
Nothing in this repo. Once this is merged, the platform repo pins the merge commit, and its pull request check reads this contract from then on.
🤖 Generated with Claude Code