/terraform-aws-chatbot

terraform-aws-chatbot

Primary LanguageHCLMIT LicenseMIT

terraform-aws-chatbot

terraform-aws-chatbot

About

Terraform AWS sample module to provision AWS Chatbot integration with Slack.

Providers

Requires both aws (AWS) and awscc (AWS Cloud Control) providers.

Usage

  1. Authorize Slack to your AWS account in the Console by following Step 1: Configure a Slack client.
  2. See examples/main.tf.

Requirements

Name Version
aws ~> 5.53.0
awscc ~> 1.2.0

Providers

Name Version
aws ~> 5.53.0
aws.us-east-1 ~> 5.53.0
awscc ~> 1.2.0

Modules

No modules.

Resources

Name Type
aws_iam_policy.delivery_status_logging_for_sns_topic_policy resource
aws_iam_role.delivery_status_logging_for_sns_topic resource
aws_iam_role_policy_attachment.delivery_status_logging_for_sns_topic_attachment resource
aws_sns_topic.sns_topic_for_aws_chatbot_primary_region resource
aws_sns_topic.sns_topic_for_aws_chatbot_us_east_1 resource
aws_sns_topic_policy.sns_topic_policy_for_aws_chatbot_primary_region resource
aws_sns_topic_policy.sns_topic_policy_for_aws_chatbot_us_east_1 resource
awscc_chatbot_slack_channel_configuration.chatbot_slack resource
awscc_iam_role.chatbot_channel_role resource
aws_caller_identity.current data source
aws_canonical_user_id.current data source
aws_iam_policy_document.sns_to_cw_logs_assume_role_policy data source
aws_iam_policy_document.sns_to_cw_logs_policy data source
aws_iam_policy_document.sns_topic_policy_for_aws_chatbot_primary_region data source
aws_iam_policy_document.sns_topic_policy_for_aws_chatbot_us_east_1 data source
aws_region.current data source

Inputs

Name Description Type Default Required
slack_channel_configuration_name AWS Chatbot Slack channel configuration name. string n/a yes
slack_channel_id Slack channel ID. string n/a yes
slack_workspace_id Slack workspace ID - https://slack.com/help/articles/221769328-Locate-your-Slack-URL-or-ID string n/a yes
logging_level AWS Chatbot integration CloudWatch Logs log level. string "INFO" no

Outputs

Name Description
awscc_chatbot_slack_channel_configuration_arn AWS Chatbot Slack channel configuration ARN
chatbot_channel_iam_role_arn AWS Chatbot channel IAM role ARN
chatbot_sns_topic_arn_primary_region AWS Chatbot SNS topic ARN in primary region.
chatbot_sns_topic_arn_us_east_1 AWS Chatbot SNS topic ARN in us-east-1.

Note: The inputs and outputs sections are automatically generated by terraform-docs in a git pre-commit hook. This requires setup of pre-commit-terraform . Follow the install instructions to use, including the dependencies setup. pre-commit ensures correct formatting, linting and generation of documentation. It also check's for trailing whitespace, merge conflics and mixed line endings. See .pre-commit-config.yaml for more information. A full guide to the pre-commit framework can be found here.

Authors/contributors

See contributors.

License

MIT licensed. See LICENSE. Feel free to fork and make use of what you want.