terraform-provider-stackgen

sg_chat_channels (Data Source)

⚠️ Experimental — Lists Guild chat channels registered for the organization.

Example Usage

# When to use: List Slack/Teams channels in the org allowlist, optionally
# filtered by provider, tag, or enabled-only.
data "sg_chat_channels" "slack_incidents" {
  chat_provider = "slack"
  tag           = "incidents"
  enabled_only  = true
}

output "slack_channel_ids" {
  value = [for c in data.sg_chat_channels.slack_incidents.channels : c.id]
}

Schema

Optional

Read-Only

Nested Schema for channels

Read-Only: