module "chatbot" {
source = "github.com/Flaconi/terraform-aws-chat-bot"
configuration_name = "sample-alerts"
guardrail_policy_arns = ["arn:aws:iam::aws:policy/ReadOnlyAccess"]
iam_role_arn = "arn:aws:iam::123456789012:role/aws-chatbot-role"
slack_team_name = "sample-slack-workspace"
slack_channel_id = "C00000000"
sns_topic_arns = [
"arn:aws:sns:eu-central-1:123456789012:sample-alerts"
]
logging_level = "ERROR"
tags = {
Terraform = "true"
Service = "chatbot"
}
}The module creates:
- 1 AWS Chatbot Slack channel configuration
| Name | Version |
|---|---|
| aws | >= 4.0 |
| Name | Version |
|---|---|
| terraform | ~> 1.3 |
| aws | >= 4.0 |
The following input variables are required:
Description: IAM role ARN used by AWS Chatbot
Type: string
Description: Slack workspace (team) name integrated with AWS Chatbot
Type: string
Description: Slack channel ID where AWS notifications are sent
Type: string
Description: SNS topic ARNs used by the Chatbot Slack channel configuration
Type: list(string)
The following input variables are optional (have default values):
Description: AWS Chatbot configuration name
Type: string
Default: null
Description: IAM policy ARNs attached to the Chatbot role and configured as Chatbot guardrails
Type: list(string)
Default:
[
"arn:aws:iam::aws:policy/ReadOnlyAccess"
]Description: Logging level for AWS Chatbot. Allowed values: ERROR, INFO, NONE
Type: string
Default: "NONE"
Description: Tags applied to resources created by this module
Type: map(string)
Default: {}
| Name | Description |
|---|---|
| chatbot_configuration_arn | ARN of the AWS Chatbot Slack channel configuration |
| chatbot_configuration_name | Name of the AWS Chatbot Slack channel configuration |
Copyright (c) 2023 Flaconi GmbH