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
	software_source_type = var.software_source_software_source_type

	#Optional
	custom_software_source_filter {

		#Optional
		module_stream_profile_filters {

			#Optional
			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
			profile_name = oci_os_management_hub_profile.test_profile.name
			stream_name = oci_streaming_stream.test_stream.name
		}
		package_filters {

			#Optional
			filter_type = var.software_source_custom_software_source_filter_package_filters_filter_type
			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 {

			#Optional
			filter_type = var.software_source_custom_software_source_filter_package_group_filters_filter_type
			package_groups = var.software_source_custom_software_source_filter_package_group_filters_package_groups
		}
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.software_source_description
	display_name = var.software_source_display_name
	freeform_tags = {"Department"= "Finance"}
	is_auto_resolve_dependencies = var.software_source_is_auto_resolve_dependencies
	is_automatically_updated = var.software_source_is_automatically_updated
	is_created_from_package_list = var.software_source_is_created_from_package_list
	origin_software_source_id = oci_os_management_hub_software_source.test_software_source.id
	packages = var.software_source_packages
	software_source_version = var.software_source_software_source_version
	vendor_software_sources {

		#Optional
		display_name = var.software_source_vendor_software_sources_display_name
		id = var.software_source_vendor_software_sources_id
	}
}

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"