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

From wikieduonline
Jump to navigation Jump to search
 
(7 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
  
 
  [[Terraform modules|module]] "notify-slack_example_notify-slack-simple" {
 
  [[Terraform modules|module]] "notify-slack_example_notify-slack-simple" {
Line 7: Line 12:
  
  
 +
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 ==
 +
* [[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: