How can OCI Events help OIC Automation?

Having OIC Gen2 running on OCI brings plenty of added benefits.

In this post I am going to look at OCI Events.

What are OCI Events?

“Oracle Cloud Infrastructure services emit events, which are structured messages that indicate changes in resources. An Oracle Integration administrator can create rules to track these events, such as when instances are created, updated, or deleted, and compartments changed.”

You can only deliver events to certain Oracle Cloud Infrastructure services with a rule. Use the following services to create actions: 

What are Notifications?

“The Notifications service enables you to set up communication channels for publishing messages using topics and subscriptions . When a message is published to a topic, the Notifications service sends the message to all of the topic’s subscriptions.”

Use Case

Create two notifications (Email & Slack) for changes in the state of an instance (example: Start Instance)

Create Notifications

Under Application Integration>Notifications>Topics, create a Topic and then create a Subscription with Protocol=Email.


The provided email account will receive an email with a link to confirm the subscription.

All going well you will see the below screen.

Create Event

Under Application Integration>Events, create a new event. The Event Type is Integration, and the type Integration Instance – Start Begin.The Notification is the one created previously.

These are some of the available Event Types, for the Service Name Integration.

When I start my OIC Instance, in a matter of seconds I get an email Notification.

Create a another Notification – SLACK

Under Application Integration>Notifications>Topics, create a Topic and then create a Subscription with Protocol=Slack.
The Slack Webhook is required.

The confirmation for this new subscription is now displayed in the Slack channel(for which you generated the webhook)

In a similar manner as before, when I start the OIC instance, we get an immediate notification in the Slack channel.

This Notification framework that listens to Events occurring  in any OIC resource was built in less than 15 min. 

All of this because OIC Gen2 runs on top of OCI.