Repository navigation
New pattern: lambda-web-weighted-rollout - weighted revision rollouts for a Lambda Web Function - #3443
Open
sshekghub wants to merge 3 commits into
Open
New pattern: lambda-web-weighted-rollout - weighted revision rollouts for a Lambda Web Function#3443sshekghub wants to merge 3 commits into
sshekghub wants to merge 3 commits into
Conversation
…ambda Web Function behind CloudFront
…d reset sample release to v1
This branch has not been deployed
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.
Issue #, if available:
Description of changes:
This pattern shows how to roll out a new release to an AWS Lambda Web Function gradually: canary, shift, promote and rollback, using
AutoDeploymentMode: DisabledandRevisionWeights. The Lambda documentation recommends this approach for production. I couldn't find an existing pattern that implements it as infrastructure as code.IamAuthendpoint. Stack parameters set each slot's S3 code version and traffic weight, so the template always matches what's serving traffic.deploy.shruns the release withcanary PCT,shift PCT,promote,rollbackandstatus. It reads the current state from the stack, so users never handle revision IDs.Tested end to end : first deploy, canary, shift, promote, rollback after promote, and abort during a canary.