terraform-provider-digitalocean icon indicating copy to clipboard operation
terraform-provider-digitalocean copied to clipboard

Support App Platform alerts via slack

Open hstaudacher opened this issue 2 years ago • 8 comments

Is your feature request related to a problem? Please describe.

When configuring an alert within the digitalocean_app spec only an email alert will be configured. It would be nice if one can choose between email/slack as within the do UI.

hstaudacher avatar Mar 19 '22 19:03 hstaudacher

Thanks for opening an issue to track this. As mentioned in the PR adding initial alert support, destinations can not be configured in the app spec itself. You need to call a separate endpoint to add Slack hooks or other emails:

https://docs.digitalocean.com/reference/api/api-reference/#operation/assign_alert_destinations

This might end up needing to be a separate app alert destinations resource.

andrewsomething avatar Mar 19 '22 23:03 andrewsomething

I wasn't aware of #797. Thx for pointing me to it. The problem I see right now is that the endpoint you are mentioning requires an alert id which is not exposed when creating the app in terraform. So, I guess would have to list all alerts for all apps and update the destinations. Is this what you would a suggest? If not can you point me to the right direction? Thx in advance.

hstaudacher avatar Mar 20 '22 15:03 hstaudacher

Yes. doctl also has commands for using both of those if the CLI makes it easier for you.

andrewsomething avatar Mar 21 '22 14:03 andrewsomething

Hello, are you planning to include this in the module? That is, the integration of slack is native.

ricardo01010 avatar Jun 03 '22 22:06 ricardo01010

it would be great to support this since it is a very common use case for the alerts

voxivoid avatar Jul 19 '22 13:07 voxivoid

Any progress on this?

hstaudacher avatar Dec 28 '22 21:12 hstaudacher

This is a feature we're missing as well, so it would be very nice to see this.

WouterSioen avatar Oct 16 '23 08:10 WouterSioen

This would be a great feature :)

mwyld avatar Mar 01 '24 00:03 mwyld