-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
22 lines (18 loc) · 794 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
data "local_file" "cloudformation_template" {
filename = "${path.module}/cloudformation.yml"
}
resource "aws_cloudformation_stack" "chatbot_slack_configuration" {
name = "chatbot-slack-configuration-${var.configuration_name}"
template_body = data.local_file.cloudformation_template.content
parameters = {
ConfigurationNameParameter = var.configuration_name
GuardrailPoliciesParameter = join(",", var.guardrail_policies)
IamRoleArnParameter = var.iam_role_arn
LoggingLevelParameter = var.logging_level
SlackChannelIdParameter = var.slack_channel_id
SlackWorkspaceIdParameter = var.slack_workspace_id
SnsTopicArnsParameter = join(",", var.sns_topic_arns)
UserRoleRequiredParameter = var.user_role_required
}
tags = var.tags
}