-
-
Notifications
You must be signed in to change notification settings - Fork 18
feat(aws-lambda): Add version templating for layer names #678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
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. |
|
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
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
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
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
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
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
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
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.