Terraform -- Notification service

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 


# This resource provides the Notification Topic resource in Oracle Cloud Infrastructure Notifications service.


resource "oci_ons_notification_topic" "test_notification_topic" {

    #Required

    compartment_id = var.compartment_id

    name = var.notification_topic_name


    #Optional

    #defined_tags = {"Operations.CostCenter"= "42"}

    description = var.notification_topic_description

    freeform_tags = {"Department"= var.compartment_name}

}



# This resource provides the Subscription resource in Oracle Cloud Infrastructure Notifications service.


resource "oci_ons_subscription" "test_subscription" {

    #Required

    compartment_id = var.compartment_id

    endpoint = var.subscription_endpoint

    protocol = var.subscription_protocol

    topic_id = oci_ons_notification_topic.test_notification_topic.id


    #Optional

    #defined_tags = {"Operations.CostCenter"= "42"}

    freeform_tags = {"Department"= var.compartment_name}

}


The terraform destroy took : oci_ons_notification_topic.test_notification_topic: Destruction complete after 15m23s




Comments

Popular posts from this blog

OPA : Introduction to OPA

IP Cutover

FIRST-SUCCESSFUL SCRIPT -- NEEDED EDITION -- FIRST SUCCESSFUL ONE