Skip to content

Flaconi/terraform-aws-chat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform AWS Chatbot Module

License

Usage

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"
	}
}

Resources

The module creates:

  • 1 AWS Chatbot Slack channel configuration

Providers

Name Version
aws >= 4.0

Requirements

Name Version
terraform ~> 1.3
aws >= 4.0

Required Inputs

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)

Optional Inputs

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: {}

Outputs

Name Description
chatbot_configuration_arn ARN of the AWS Chatbot Slack channel configuration
chatbot_configuration_name Name of the AWS Chatbot Slack channel configuration

License

MIT License

Copyright (c) 2023 Flaconi GmbH

About

Terraform module for handling AWS Chat Bot configuration

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors