This is a Terrafrom module to configure AWS ChatBot Slack Channels.
- 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.
- Add a module definition to your Terraform. See the example below.
- Update
sns_topic_arns
,slack_workspace_id
,slack_channel_id
, and any other variables to match your requirements (guardrail_policies
andsns_topic_arns
are comma separated lists of ARNs). - 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"
}
- It seems there is no API to programatically configure ChatBot Channels, so this module achieves that by creating a CloudFormation stack.