Skip to content

keetonian/lambda-to-slack

Repository files navigation

lambda-to-slack

This serverless app posts messages to Slack.

App Architecture

App Architecture

Installation Instructions

  1. Create an AWS account if you do not already have one and login
  2. Go to the app's page on the Serverless Application Repository and click "Deploy"
  3. Provide the required app parameters (see parameter details below) and click "Deploy"

Using this Application

This lambda function expects to be called with a JSON array of strings, and will post each string to a Slack channel via a webhook.

Slack Url

To get a webhook URL for this application:

  • Navigate to https://api.slack.com
  • Click on the "Start Building" button
  • Give your app a name and select a workspace
  • Under "Add features and functionality" select "Incoming Webhooks"
  • Turn on "Incoming Webhooks" and click "Add New Webhook to Workspace"
  • Select the desired channel and click "Authorize"
  • Copy the generated Webhook URL

App Parameters

  1. SlackUrl (required) - Webhook URL for integration with Slack
  2. LogLevel (optional) - Log level for Lambda function logging, e.g., ERROR, INFO, DEBUG, etc. Default: INFO

App Outputs

  1. LambdaToSlackName - Lambda function name.
  2. LambdaToSlackArn - Lambda function ARN.

License Summary

This code is made available under the MIT license. See the LICENSE file.

About

Lambda function that sends messages to a Slack webhook

Resources

License

Stars

Watchers

Forks

Packages

No packages published