Skip to content

This module contains the necessary resources to set up a functioning AWS Chatbot service with Slack integration. EventBridge integration for Chatbot is also provided.

License

Notifications You must be signed in to change notification settings

terraform-trailwatch-modules/terraform-aws-chatbot

Repository files navigation

Terraform Trailwatch Modules

AWS Chatbot

Releases License

About

This Terraform module automates the deployment of an AWS Chatbot integration with EventBridge. The integration leverages Lambda functions and SNS topics to seamlessly route events from EventBridge to your AWS Chatbot, enabling real-time notifications and streamlined incident response.

Features

  • Event-driven integration with EventBridge
  • Lambda function processing for event transformation and filtering
  • Reliable event delivery with SNS topics
  • Seamless integration with AWS Chatbot

Requirements

Name Version
terraform ~> 1.9
archive ~> 2.0
aws ~> 5.0
null ~> 3.0

Inputs

Name Description Type Default Required
aws_tags Additional tags to apply to this module. map(string) {} no
chatbot_slack_channels A list of Slack Channel IDs to send notifications to. list(string) n/a yes
chatbot_slack_team The Slack Workspace ID associated with the ChatBot. string n/a yes
eventbridge_patterns Events to send notifications for. map(string) {} no
id Unique ID associated with this deployment string n/a yes

Simple Example

module "terraform_trailwatch_chatbot" {
  source                  = "terraform-trailwatch-modules/chatbot/aws"
  id                      = "my-chatbot"
  chatbot_slack_channels  = ["C01234567", "C12345678"]
  chatbot_slack_team      = "T01234567"
}

Advanced Example

module "terraform_trailwatch_chatbot" {
  source                  = "terraform-trailwatch-modules/chatbot/aws"
  id                      = "my-chatbot"
  chatbot_slack_channels  = ["C01234567", "C12345678"]
  chatbot_slack_team      = "T01234567"
    eventbridge_patterns = {
    ec2_instance_state_change = <<EOF
    {
      "source": [
        "aws.ec2"
      ],
      "detail-type": [
        "EC2 Instance State-change Notification"
      ]
    }
    EOF
    }
}

Changelog

For a detailed list of changes, please refer to the CHANGELOG.md.

License

This module is licensed under the MIT License.

About

This module contains the necessary resources to set up a functioning AWS Chatbot service with Slack integration. EventBridge integration for Chatbot is also provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks