Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.06 KB

File metadata and controls

43 lines (31 loc) · 1.06 KB
page_title
FireHydrant Data Source: firehydrant_slack_channel

firehydrant_slack_channel Data Source

Use this data source to pass Slack channel information to other resources.

Example Usage

Basic usage:

data "firehydrant_slack_channel" "team_rocket" {
  slack_channel_id   = "C1234567890"
  slack_channel_name = "#team-rocket"
}

resource "firehydrant_escalation_policy" "team_rocket" {
  # ...
  step {
    timeout = "PT5M"
    targets {
      type = "SlackChannel"
      id = data.firehydrant_slack_channel.team_rocket.id
    }
  }
}

Argument Reference

The following arguments are supported:

You must provide one of these options.

  • slack_channel_id - (Optional) Slack's channel ID.
  • slack_channel_name - (Optional) Slack's channel name. We recommend using slack_channel_id where possible as Slack channel name may be changed and thus cause surprise state inconsistencies.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The FireHydrant ID for the given Slack channel.