Ship a Lambda version and post release notes to Slack
When a new GitHub release ships, cut a fresh AWS Lambda version, roll the production alias onto it, and drop a friendly summary in Slack.
When a new release is published in our GitHub repository, promote the matching AWS Lambda code to production and announce it in Slack.
Trigger on GitHub's release webhook, specifically the release-published event. When it fires, take the tag name from the webhook payload and call GitHub's Get Release by Tag to fetch the release name, tag, HTML URL, and the full release body.
In AWS Lambda, call Publish Version on the target function to snapshot the current $LATEST code and configuration as a new immutable version number. Then call Update Alias to move the production alias (for example, prod) onto that new version number so live traffic starts hitting the new code. The Lambda function name and the alias to roll should be inputs configured when the workflow is set up. Assume the code is already deployed to $LATEST by CI or another workflow — this workflow only cuts a version and moves the alias.
Read the raw release body and draft a friendly, non-technical release note aimed at engineering teammates who did not write the code: what changed at a high level, who it affects, and whether anything needs attention (breaking changes, migrations, action required). Keep it warm and short — three to six bullets, no jargon dumps, no copy-pasting the raw changelog verbatim. The tone-shaping is the whole reason this is an agent workflow rather than a fixed pipeline.
Post the summary to the engineering Slack channel using Slack Bot's Send a Message. Include the release name and tag, the new Lambda version number that was published, the alias that was rolled, and a link back to the GitHub release page for anyone who wants the full changelog.
Additional information
What does this prompt do?
- Kicks off the moment a new release is published in your GitHub repo
- Pulls the release notes for the tag that just shipped
- Snapshots your current Lambda code as a fresh, immutable version
- Points your production alias at the new version so live traffic hits it
- Turns the raw release notes into a friendly, non-technical summary and posts it to your engineering Slack channel with the version number and a link back to the release
What do I need to use this?
- A GitHub repo where your team publishes releases
- An AWS Lambda function that already receives your latest code (from CI or another workflow) and a production alias to roll
- A Slack workspace and the engineering channel where the announcement should land
How can I customize it?
- Change which Slack channel gets the announcement, or add the on-call engineer as a DM
- Adjust the tone of the summary — swap friendly for concise, changelog-style, or exec-brief
- Add a manual approval step in Slack before the production alias actually moves
Frequently asked questions
Does this workflow deploy my code to AWS?
What happens if the release notes are empty?
Which Lambda alias does it move?
Can I roll back if something looks wrong after the announcement?
Do I need a special GitHub setup?
Related templates
Ship Lambda releases without the copy-paste
Let the workflow cut the version, roll the alias, and tell the team what changed while you go get coffee.