feat(aws-lambda): Add version templating for layer names#678
Merged
Conversation
Add support for Mustache-style template variables in the layerName config
for AWS Lambda layers. This allows dynamic interpolation of version
components (major, minor, patch, version) at publish time.
Example: `SentryNodeServerlessSDKv{{{major}}}` becomes
`SentryNodeServerlessSDKv10` when publishing version 10.2.3.
This eliminates the need for manual layer name updates when releasing
new major versions.
Closes #646.
Contributor
Suggested Version Bump🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Changelog
Documentation 📚🤖 This preview updates automatically when you update the PR. |
Contributor
|
MathurAditya724
approved these changes
Dec 28, 2025
7 tasks
andreiborza
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Jan 2, 2026
Craft now supports mustach-style template variables for versions which means we no longer have to worry about manually keeping track of the major in the layer name. Related: getsentry/craft#678 Closes: #18674
andreiborza
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Jan 2, 2026
Craft now supports mustach-style template variables for versions which means we no longer have to worry about manually keeping track of the major in the layer name. Related: getsentry/craft#678 Closes: #18674
andreiborza
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Jan 2, 2026
Craft now supports mustach-style template variables for versions which means we no longer have to worry about manually keeping track of the major in the layer name. Related: getsentry/craft#678 Closes: #18674
andreiborza
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Jan 2, 2026
Craft now supports mustach-style template variables for versions which means we no longer have to worry about manually keeping track of the major in the layer name. Related: getsentry/craft#678 Closes: #18674
andreiborza
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Jan 2, 2026
Craft now supports mustach-style template variables for versions which means we no longer have to worry about manually keeping track of the major in the layer name. Related: getsentry/craft#678 Closes: #18674
andreiborza
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Jan 2, 2026
Craft now supports mustach-style template variables for versions which means we no longer have to worry about manually keeping track of the major in the layer name. Related: getsentry/craft#678 Closes: #18674
andreiborza
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Jan 2, 2026
Craft now supports mustach-style template variables for versions which means we no longer have to worry about manually keeping track of the major in the layer name. Related: getsentry/craft#678 Closes: #18674
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.
Summary
Add support for Mustache-style template variables in the
layerNameconfig for AWS Lambda layers. This allows dynamic interpolation of version components at publish time, eliminating manual layer name updates when releasing new major versions.Template Variables
{{{version}}}10.2.3{{{major}}}10{{{minor}}}2{{{patch}}}3Example
When publishing version
10.2.3, the layer will be namedSentryNodeServerlessSDKv10.Changes
resolveLayerName()method toAwsLambdaLayerTargetfor template interpolationpublishRuntimes()to use the resolved layer nameCloses #646.