Skip to content

brightbock/aws-chatbot-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub GitHub release (latest SemVer) GitHub Workflow Status

AWS ChatBot Terraform

This is a Terrafrom module to configure AWS ChatBot Slack Channels.

How to use:

  1. First you MUST add your Slack workspace using the AWS ChatBot Console. When the Slack workspace is listed in the AWS ChatBot Console, you can use this Terraform module to configure each channel. Slack App Permission Screenshot
  2. Add a module definition to your Terraform. See the example below.
  3. Update sns_topic_arns, slack_workspace_id, slack_channel_id, and any other variables to match your requirements (guardrail_policies and sns_topic_arns are comma separated lists of ARNs).
  4. In each private Slack channel, invite AWS ChatBot by sending a message: "@aws"
module "aws_chatbot" {
  source             = "git::https://github.com/brightbock/aws-chatbot-tf.git?ref=v0.1.0"
  configuration_name = "my_chatbot"
  sns_topic_arns     = "arn:aws:sns:us-west-2:000000000000:my-first-sns,arn:aws:sns:ap-northeast-3:000000000000:my-second-sns"
  slack_workspace_id = "T00000XXXXX"
  slack_channel_id   = "C00000XXXXX"
}

Note:

  • It seems there is no API to programatically configure ChatBot Channels, so this module achieves that by creating a CloudFormation stack.