oci_os_management_hub_software_source

This resource provides the Software Source resource in Oracle Cloud Infrastructure Os Management Hub service.

Creates a new versioned or custom software source.

Example Usage

resource "oci_os_management_hub_software_source" "test_software_source" {
    #Required
    compartment_id = var.compartment_id
    display_name = var.software_source_display_name
    software_source_type = var.software_source_software_source_type
    vendor_software_sources {
        #Required
        display_name = var.software_source_vendor_software_sources_display_name
        id = var.software_source_vendor_software_sources_id
    }

    #Optional
    custom_software_source_filter {

        #Optional
        module_stream_profile_filters {
            #Required
            filter_type = var.software_source_custom_software_source_filter_module_stream_profile_filters_filter_type
            module_name = var.software_source_custom_software_source_filter_module_stream_profile_filters_module_name

            #Optional
            profile_name = oci_os_management_hub_profile.test_profile.name
            stream_name = oci_streaming_stream.test_stream.name
        }
        package_filters {
            #Required
            filter_type = var.software_source_custom_software_source_filter_package_filters_filter_type

            #Optional
            package_name = var.software_source_custom_software_source_filter_package_filters_package_name
            package_name_pattern = var.software_source_custom_software_source_filter_package_filters_package_name_pattern
            package_version = var.software_source_custom_software_source_filter_package_filters_package_version
        }
        package_group_filters {
            #Required
            filter_type = var.software_source_custom_software_source_filter_package_group_filters_filter_type

            #Optional
            package_groups = var.software_source_custom_software_source_filter_package_group_filters_package_groups
        }
    }
    defined_tags = {"Operations.CostCenter"= "42"}
    description = var.software_source_description
    freeform_tags = {"Department"= "Finance"}
    is_automatically_updated = var.software_source_is_automatically_updated
    software_source_version = var.software_source_software_source_version
}

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 Software Source * update - (Defaults to 20 minutes), when updating the Software Source * delete - (Defaults to 20 minutes), when destroying the Software Source

Import

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

$ terraform import oci_os_management_hub_software_source.test_software_source "id"