{"id":19330744,"url":"https://github.com/versent/demo-lambda-safe-deployments","last_synced_at":"2026-06-19T21:32:03.081Z","repository":{"id":75212087,"uuid":"160442020","full_name":"Versent/demo-lambda-safe-deployments","owner":"Versent","description":"Demo of Lambda DeploymentPreferences property","archived":false,"fork":false,"pushed_at":"2018-12-05T01:49:57.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-24T07:13:13.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Versent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-05T01:31:20.000Z","updated_at":"2021-10-27T17:51:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"f396a510-6a66-4993-82a2-fffb0783d0ec","html_url":"https://github.com/Versent/demo-lambda-safe-deployments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Versent/demo-lambda-safe-deployments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Versent%2Fdemo-lambda-safe-deployments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Versent%2Fdemo-lambda-safe-deployments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Versent%2Fdemo-lambda-safe-deployments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Versent%2Fdemo-lambda-safe-deployments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Versent","download_url":"https://codeload.github.com/Versent/demo-lambda-safe-deployments/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Versent%2Fdemo-lambda-safe-deployments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34549340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T02:37:47.292Z","updated_at":"2026-06-19T21:32:03.061Z","avatar_url":"https://github.com/Versent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo: Lambda/Stepfunctions Deployment Preferences\n\nThis repo is a working implementation of AWS [Serverless Application Model]( https://github.com/awslabs/serverless-application-model) (SAM) deployment preferences.\n\nThe majority of interest will be in the deploy.sam.yaml\n\nThis file contains the deployment information for a simple hello-world lambda function. This contains example of how to enable:\n\n* Canary/Linear Deployments\n* PreTraffic lambda function validation (Post traffic enabled the same way)\n* Alarms to trigger automated cloudformation rollback based on error threshold\n* Conditions to control when these\n\nTo test out these deployment strategies, recommendation is to deploy into nbos-sandbox-np.\nThe conditions in the same template have excluded dev so you can swap between dev/tst in sandbox to see the differences (stg does not exist in sandbox)\n\n* dev will be a quick deployment\n* tst will be a safe deployment with all options enabled\n\n## Requirements\n\n### Dependancies\n\n* GNU Make \u003e 4.2.1\n* aws-cli \u003e 1.14.60\n* node version \u003e 11.1.0\n* npm version \u003e 6.4.1\n* saml2aws \u003e 2.10.0\n\n### Dev Dependancies\n\n* direnv\n\n## Build\n\nBuild commands are configured in the Makefile:\n\n`make build`\n\n## Deploy\n\nTo deploy this locally:\n1) Have a valid AWS Account cli session configured (saml2aws) \n2) Have your environment variables configured (direnv or manually)\n\n`make deploy`\n\nMore information on Deployment Preferences is available at:\n\n* [Versent Confluence](hhttps://versent.atlassian.net/wiki/spaces/PRAC/pages/703562074/Step+Functions)\n* [SAM Safe Lambda Deployments](https://github.com/awslabs/serverless-application-model/blob/master/docs/safe_lambda_deployments.rst)\n* [AWS Blog - Implmenting Canary Deployments](https://aws.amazon.com/blogs/compute/implementing-canary-deployments-of-aws-lambda-functions-with-alias-traffic-shifting/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fversent%2Fdemo-lambda-safe-deployments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fversent%2Fdemo-lambda-safe-deployments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fversent%2Fdemo-lambda-safe-deployments/lists"}