Skip to content

kayac/notico

Repository files navigation

notico

notico is Slack event notification bot.

Usage

  1. Create a Slack Apps account.
  2. Invite the account to a channel.
  3. Get the token and signing secret from the Slack Apps.
  4. Set secret SLACK_TOKEN and SLACK_SINGNING_SECRET(default /notico/prod) on AWS Secret Manager.
  5. Set environment variables. e.g.
export DOMAIN="..."
export NOTICE_CHANNEL_ID="CXXXXXXXX"
export LAMBROLL_TFSTATE="s3://..."
export TF_BACKEND_BUCKET="..."
export TF_BACKEND_KEY="..."
export TF_BACKEND_REGION="..."
  1. Setup aqua and aqua i
  2. Setup infrastructures by terraform.
$ task terraform:init
$ task terraform:plan
$ task terraform:apply
  1. Deploy the lambda function.
$ task lambda:deploy

Supported Events

  • channel_created
  • channel_deleted
  • channel_rename
  • channel_archive
  • channel_unarchive
  • team_join
  • subteam_created

LICENSE

The MIT License (MIT)

Copyright (c) 2016-2024 KAYAC Inc.