Skip to content

Commit 9f95e2c

Browse files
committed
Terraform errors for chatbot
1 parent 3939d94 commit 9f95e2c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

terraform/batch_processor_errors_slack_chatbot.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
resource "awscc_chatbot_slack_channel_configuration" "batch_processor_errors" {
1+
resource "aws_chatbot_slack_channel_configuration" "batch_processor_errors" {
22
count = var.batch_error_notifications_enabled ? 1 : 0
33

44
configuration_name = "${local.resource_scope}-batch-processor-errors-slack-channel-config"
5-
iam_role_arn = awscc_iam_role.batch_processor_errors_chatbot[0].arn
6-
slack_channel_id = var.environment == "prod" ? "TODO - make channel" : "C09E48NDP18"
7-
slack_workspace_id = "TJ00QR03U"
5+
iam_role_arn = aws_iam_role.batch_processor_errors_chatbot[0].arn
6+
slack_channel_id = var.environment == "prod" ? "C09EA0HE202" : "C09E48NDP18"
7+
slack_team_id = "TJ00QR03U"
88
sns_topic_arns = [aws_sns_topic.batch_processor_errors[0].arn]
99
}
1010

11-
resource "awscc_iam_role" "batch_processor_errors_chatbot" {
11+
resource "aws_iam_role" "batch_processor_errors_chatbot" {
1212
count = var.batch_error_notifications_enabled ? 1 : 0
1313

14-
role_name = "${local.resource_scope}-batch-processor-errors-chatbot-channel-role"
15-
assume_role_policy_document = jsonencode({
14+
name = "${local.resource_scope}-batch-processor-errors-chatbot-channel-role"
15+
assume_role_policy = jsonencode({
1616
Version = "2012-10-17"
1717
Statement = [
1818
{
1919
Action = "sts:AssumeRole"
2020
Effect = "Allow"
21-
Sid = ""
21+
Sid = "AssumeChatbotRole"
2222
Principal = {
2323
Service = "chatbot.amazonaws.com"
2424
}

0 commit comments

Comments
 (0)