An AWS Support App resource that creates, updates, lists and deletes Slack channel configurations.
To create a channel within a slack workspace
resource "aws_iam_role" "AWSSupportSlackAppTFRole" {
name = "AWSSupportSlackAppTFRole"
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Principal = {
Service = "supportapp.amazonaws.com"
}
Action = "sts:AssumeRole"
}
]
})
managed_policy_arns = [
"arn:aws:iam::aws:policy/AWSSupportAppFullAccess"
]
}
resource "awscc_supportapp_slack_channel_configuration" "slack_channel_example" {
team_id = "TXXXXXXXXX"
channel_id = "C0XXXXXXXX"
channel_name = "tftemplatechannel1"
notify_on_create_or_reopen_case = true
notify_on_add_correspondence_to_case = false
notify_on_resolve_case = true
notify_on_case_severity = "high"
channel_role_arn = aws_iam_role.AWSSupportSlackAppTFRole.arn
}
channel_id
(String) The channel ID in Slack, which identifies a channel within a workspace.channel_role_arn
(String) The Amazon Resource Name (ARN) of an IAM role that grants the AWS Support App access to perform operations for AWS services.notify_on_case_severity
(String) The severity level of a support case that a customer wants to get notified for.team_id
(String) The team ID in Slack, which uniquely identifies a workspace.channel_name
(String) The channel name in Slack.notify_on_add_correspondence_to_case
(Boolean) Whether to notify when a correspondence is added to a case.notify_on_create_or_reopen_case
(Boolean) Whether to notify when a case is created or reopened.notify_on_resolve_case
(Boolean) Whether to notify when a case is resolved.id
(String) Uniquely identifies the resource.Import is supported using the following syntax:
$ terraform import awscc_supportapp_slack_channel_configuration.example <resource ID>