oci_vulnerability_scanning_container_scan_recipe

This resource provides the Container Scan Recipe resource in Oracle Cloud Infrastructure Vulnerability Scanning service.

Creates a new ContainerScanRecipe. A recipe determines the types of security issues that you want scanned.

Example Usage

resource "oci_vulnerability_scanning_container_scan_recipe" "test_container_scan_recipe" {
	#Required
	compartment_id = var.compartment_id
	scan_settings {
		#Required
		scan_level = var.container_scan_recipe_scan_settings_scan_level
	}

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	display_name = var.container_scan_recipe_display_name
	freeform_tags = {"bar-key"= "value"}
	image_count = var.container_scan_recipe_image_count
}

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

Import

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

$ terraform import oci_vulnerability_scanning_container_scan_recipe.test_container_scan_recipe "id"