Viewing docs for AWS v7.28.0
published on Thursday, Apr 30, 2026 by Pulumi
published on Thursday, Apr 30, 2026 by Pulumi
AWS Lambda for Slack Notification
Viewing docs for AWS v7.28.0
published on Thursday, Apr 30, 2026 by Pulumi
published on Thursday, Apr 30, 2026 by Pulumi
A Pulumi example to:
- Creates an AWS Lambda function to post a message on Slack via a Webhook URL.
- Adds an AWS API Gateway so the Lambda can be invoked externally, e.g, via GitHub Webhooks.
- Uses a Pulumi ESC Environment to dynamically retrieve AWS OIDC Credentials and the Slack URL from AWS Secrets Manager.
Last update: September 2024
๐ Pre-requisites
- AWS OIDC configured in an Pulumi ESC Environment
- AWS Secrets Manager with a Slack Webhook URL secret
- A properly configured Slack Webhook URL
- Pulumi CLI
- Pulumi Cloud account
- npm
๐ฉโ๐ซ Get started
This Pulumi example is written as a template. It is meant to be copied via pulumi new
# login to your Pulumi Cloud if you haven't already
$ pulumi login
# create a new dir and cd to it
$ mkdir my-slack-demo
$ cd my-slack-demo
# start your pulumi project
$ pulumi new https://github.com/pulumi/examples/aws-ts-lambda-slack
# Add your Pulumi ESC Environment
$ pulumi config env add YOUR_ESC_ENV --yes --non-interactive
$ pulumi up
# select 'yes' to confirm the expected changes
# ๐ Ta-Da!
๐งน Clean up
To clean up your infrastructure, run:
$ pulumi destroy
# select 'yes' to confirm the expected changes
Viewing docs for AWS v7.28.0
published on Thursday, Apr 30, 2026 by Pulumi
published on Thursday, Apr 30, 2026 by Pulumi
