Set AutoPublishAlias on serverless.DurableFunction blueprint#2462
Open
GarrettBeatty wants to merge 1 commit into
Open
Set AutoPublishAlias on serverless.DurableFunction blueprint#2462GarrettBeatty wants to merge 1 commit into
GarrettBeatty wants to merge 1 commit into
Conversation
Add AutoPublishAlias: live to the function in the serverless.DurableFunction blueprint (vs2026) so SAM publishes a function version and points the 'live' alias at it on every deploy. Without a published version, invoking a freshly deployed durable function fails with a no-published-version error.
Contributor
Author
|
"live" is what most of the AWS docs use in examples for the version which is why I chose it |
normj
approved these changes
Jul 7, 2026
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
Adds
AutoPublishAlias: liveto the function resource in theserverless.DurableFunctionblueprint (vs2026).Motivation
When deploying the durable serverless blueprint as-is and then invoking the function, the invocation fails with a no version published error. Durable execution runs against a specific published function version, but the template published none.
With
AutoPublishAlias: live, SAM publishes a new function version and points thelivealias at it on every deploy, so the function is immediately invokable afterdotnet lambda deploy-serverless.Changes
serverless.template: add"AutoPublishAlias": "live"to the functionProperties. This is a user-authored property that the Annotations source generator preserves across re-sync (it only managesDurableConfig/ durable policy tokens).Readme.md: document the alias behavior in the Deploy section.Amazon.Lambda.Templates, Patch).Notes
dev.lambda.DurableFunctionblueprint has noserverless.template(deploys viadeploy-function).