oci_marketplace_publication

This resource provides the Publication resource in Oracle Cloud Infrastructure Marketplace service.

Creates a publication of the specified listing type with an optional default package.

Example Usage

resource "oci_marketplace_publication" "test_publication" {
    #Required
    compartment_id = var.compartment_id
    is_agreement_acknowledged = var.publication_is_agreement_acknowledged
    listing_type = var.publication_listing_type
    name = var.publication_name
    package_details {
        #Required
        eula {
            #Required
            eula_type = var.publication_package_details_eula_eula_type

            #Optional
            license_text = var.publication_package_details_eula_license_text
        }
        operating_system {

            #Optional
            name = var.publication_package_details_operating_system_name
        }
        package_type = var.publication_package_details_package_type
        package_version = var.publication_package_details_package_version

        #Optional
        image_id = oci_core_image.test_image.id
    }
    short_description = var.publication_short_description
    support_contacts {

        #Optional
        email = var.publication_support_contacts_email
        name = var.publication_support_contacts_name
        phone = var.publication_support_contacts_phone
        subject = var.publication_support_contacts_subject
    }

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    freeform_tags = {"Department"= "Finance"}
    long_description = var.publication_long_description
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Publication * update - (Defaults to 20 minutes), when updating the Publication * delete - (Defaults to 20 minutes), when destroying the Publication

Import

Publications can be imported using the id, e.g.

$ terraform import oci_marketplace_publication.test_publication "id"