-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
In last months the updates in terraform module improve telegram and microsoft teams support and now, for both tools, we don't need more to use an separated alert_connector to create the alert_action.
I like to suggest to add an "discord_webhook" argument like the recent "microsoft_teams_webhook".
So we can have an block configuration like this...
resource "ilert_alert_action" "dev_discord" {
...
discord_webhook {
url = "https://discord.com/api/webhooks/123"
}
connector {
type = "discord"
}
...
}
Instead of this:
resource "ilert_alert_action" "dev_discord" {
...
connector {
id = ilert_connector.dev_discord.id
type = ilert_connector.dev_discord.type
}
...
}
resource "ilert_connector" "dev_discord" {
name = "dev/discord"
type = "discord"
discord {
url = "https://discord.com/api/webhooks/123"
}
}
With this the terraform files will be more easy to build and maintain and you can do the deduplication of connectors to avoid duplicate configurations inside ilert platform.
krystianity
Metadata
Metadata
Assignees
Labels
No labels