Oracle Cloud Infrastructure Resource Manager - OCI Events Service for Email Notifications

How to Use OCI Events Service for Email Notifications

Question

You are using Oracle Cloud Infrastructure (OCI) Resource Manager to manage your infrastructure lifecycle and wish to receive an email each time a Terraform action begins.

How should you use the OCI Events service to do this without writing any code? (Choose the best answer.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

The correct answer is A: "Create an OCI Notifications topic and email subscription with the destination email address. Then create an OCI Events rule matching "Resource Manager Stack "" Update" condition, and select the notification topic for the corresponding action."

OCI Resource Manager is a service that enables you to automate the provisioning of infrastructure resources using Terraform templates. OCI Events is a service that enables you to track and respond to events that occur in your Oracle Cloud Infrastructure resources. OCI Notifications is a service that enables you to send messages to a variety of recipients, including email addresses, when certain events occur.

To receive an email each time a Terraform action begins using OCI Resource Manager, you can use OCI Events and Notifications services in combination with the following steps:

  1. Create an OCI Notifications topic and email subscription: First, you need to create a topic and subscription in the OCI Notifications service. The topic is a channel where messages can be published, and the subscription is a destination where messages can be sent. In this case, you will create an email subscription with the destination email address.

  2. Create an OCI Events rule matching "Resource Manager Stack "" Update" condition: Next, you need to create an OCI Events rule that will trigger the email notification. This rule should match the condition that you want to monitor, which in this case is "Resource Manager Stack Update" (i.e., when a stack is updated).

  3. Select the notification topic for the corresponding action: Finally, you need to specify the action that should be taken when the rule is triggered. In this case, you want to send an email notification, so you should select the OCI Notifications topic that you created earlier as the destination for the notification.

In summary, by following the above steps, you can configure OCI Resource Manager to trigger an email notification each time a Terraform action begins, without writing any code. This can help you to stay informed about the status of your infrastructure resources and take necessary actions in a timely manner.