page_title |
---|
FireHydrant Data Source: firehydrant_slack_channel |
Use this data source to pass Slack channel information to other resources.
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
}
}
}
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 usingslack_channel_id
where possible as Slack channel name may be changed and thus cause surprise state inconsistencies.
In addition to all arguments above, the following attributes are exported:
id
- The FireHydrant ID for the given Slack channel.