How to send notification on Slack using Webhooks
One of the main notification usage is to send messages on Slack when something happens. In this entry I will try to show how easy is to configure notifications on Slack, and in later using other Topics.
1- Go to Slack and create a dedicate Chanel to receive the notifications. You can use an existing Workspace, or you can create a new one.
2- After you have created the channel, you need to add an App in Slack by Clicking on the Channel and Open Channel Details:
3- Select Integrations Menu and Add an App:
4- Search for Incoming WebHooks and press Install
5- You are redirected to the App Webpage and you Press Add to Slack:
6- Select the Channel where you want to install again:
7- Press Add Incoming WebHooks integration:
8- Copy the webhook Address and go to OCI to configure the notifications:
9- In OCI go to Menu →Developer Services → Applicaiton Integration →Notifications
10- Select the compartment and press Create Topic:
11-Give Topic a name, and press Create:
12- Go to Subscriptions and Click Create Subscription , Select Slack as protocol, paste the Slack Webhook we created earlier and press Create:
13- Go on Slack and click on the Confirmation URL to
14- If you get the message that Subscription is not confirmed, wait a few seconds and check the Subscription Status in OCI.
15- When it is set to Active, go to Topics and test the integration:
16-In Topics menu, click on the 3 dots at the end of the Topic and press Publish Message:
17. Enter the message and press Publish:
18- Check Slack and you should see a message from incoming-webhook App:
Congratulations! You have configures Slack notifications.
Usefull Links: