amplify-slack-app
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

amplify-slack-app

Amplify Slack App gives you what's happening on AWS Amplify Console from Slack channel.

With Amplify Slack App, you can:

  • Receive notifications build result of Amplify Console
  • Run Redeploy and Cancel of Amplify Console Job from Slack
  • Open a job page on AWS Management Console
  • Open deployed web app with Amplify Console Job

Install

npm install amplify-slack-app --save

or

yarn add amplify-slack-app

Usage

Create an index.js with the following contents as Lambda handler

import { AmplifyConsoleSlackApp } from "amplify-slack-app";
import { LogLevel } from "@slack/bolt";

const app = new AmplifyConsoleSlackApp({
  signingSecret: process.env.SLACK_SIGNING_SECRET!,
  token: process.env.SLACK_BOT_TOKEN!,
  defaultChannel: process.env.SLACK_DEFAULT_CHANNEL!,
  logLevel: LogLevel.DEBUG,
});

export const handler = app.createHandler();

Setup application as Slack App

Amplify Slack App makes use of OAuth to post messages to your Slack workspace. Follow our setup guide for authenticating with Slack.

Package Sidebar

Install

npm i amplify-slack-app

Weekly Downloads

1

Version

1.1.1

License

Apache-2.0

Unpacked Size

680 kB

Total Files

21

Last publish

Collaborators

  • fossamagna