Difference between revisions of "Terraform module: notify-slack"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
This module creates an [[SNS topic]] (or uses an existing one) and an [[AWS Lambda]] function that sends notifications to Slack using the incoming webhooks API.
 
* https://registry.terraform.io/modules/terraform-aws-modules/notify-slack/aws/latest
 
* https://registry.terraform.io/modules/terraform-aws-modules/notify-slack/aws/latest
 +
 +
 +
 
* [[GitHub]]: https://github.com/terraform-aws-modules/terraform-aws-notify-slack
 
* [[GitHub]]: https://github.com/terraform-aws-modules/terraform-aws-notify-slack
  
Line 11: Line 15:
 
   source  = "terraform-aws-modules/notify-slack/aws"
 
   source  = "terraform-aws-modules/notify-slack/aws"
 
   version = "~> 5.0"
 
   version = "~> 5.0"
 
+
 
   [[sns_topic_name]] = "slack-topic"
 
   [[sns_topic_name]] = "slack-topic"
 
+
 
   [[slack_webhook_url]] = "https://hooks.slack.com/services/AAA/BBB/CCC"
 
   [[slack_webhook_url]] = "https://hooks.slack.com/services/AAA/BBB/CCC"
 
   [[slack_channel]]    = "aws-notification"
 
   [[slack_channel]]    = "aws-notification"
Line 19: Line 23:
 
  }
 
  }
  
 +
== Related ==
 +
* [[Slack]]
 +
* [[Incoming webhooks in Slack]]
 +
* [[Slack notifications]]
 +
 +
== See also ==
 +
* {{tf modules}}
  
{{tf modules}}
+
[[Category:Terraform]]

Latest revision as of 12:53, 30 October 2024

This module creates an SNS topic (or uses an existing one) and an AWS Lambda function that sends notifications to Slack using the incoming webhooks API.


module "notify-slack_example_notify-slack-simple" {
 source  = "terraform-aws-modules/notify-slack/aws//examples/notify-slack-simple"
 version = "5.6.0"
}


module "notify_slack" {
 source  = "terraform-aws-modules/notify-slack/aws"
 version = "~> 5.0"

 sns_topic_name = "slack-topic"

 slack_webhook_url = "https://hooks.slack.com/services/AAA/BBB/CCC"
 slack_channel     = "aws-notification"
 slack_username    = "reporter"
}

Related[edit]

See also[edit]

Advertising: