Closed PetrHeinz closed 2 months ago
Build on top of Slack integration API: https://betterstack.com/docs/uptime/api/list-all-slack-integrations/
main.tf:
main.tf
data "betteruptime_slack_integration" "this" { slack_channel_name = "#better-stack-incidents" } output "slack_integration" { value = data.betteruptime_slack_integration.this }
Example output:
Apply complete! Resources: 0 added, 0 changed, 0 destroyed. Outputs: slack_integration = { "id" = "82444" "integration_type" = "verbose" "on_call_notifications" = true "slack_channel_id" = "C04MK3A3Q5S" "slack_channel_name" = "#better-stack-incidents" "slack_status" = "active" "slack_team_id" = "T2VJ5U55R" "slack_team_name" = "My Slack" }
Build on top of Slack integration API: https://betterstack.com/docs/uptime/api/list-all-slack-integrations/
main.tf
:Example output: