Terraform module providing a notification-based integration between Spacelift and Microsoft Teams. It creates a webhook in Spacelift that will send notifications to a Microsoft Teams channel when:
- a tracked run needs confirmation;
- a tracked run or a task finishes;
- a module version succeeds or fails;
The official documentation for this integration is available in here.
module "spacelift_msteams" {
source = "spacelift-io/msteams/spacelift"
channel_name = "My channel"
space_id = "root"
webhook_url = "https://outlook.office.com/webhook/..."
}
Based on this configuration, the module will send notifications to the My channel
channel in Microsoft Teams that look like these:
In order to use this module, you need to have a Microsoft Teams channel and an incoming webhook URL. This needs to be set up manually.
To learn how to set up the webhook in Microsoft Teams, please refer to the official documentation.
Microsoft Teams has a rich API for creating beautiful-looking, powerful integrations. Unfortunately, much of that is either not documented, and some is not available to incoming webhooks. If you're a heavy user of both Spacelift and Microsoft Teams, and familiar with the latter's API, we'd love to hear from you. Let's build something amazing together!