Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 8.29 KB

File metadata and controls

45 lines (34 loc) · 8.29 KB

Requirements

Name Version
terraform >= 1.3.0

Providers

Name Version
oci n/a

Modules

No modules.

Resources

Name Type
oci_vulnerability_scanning_container_scan_recipe.these resource
oci_vulnerability_scanning_container_scan_target.these resource
oci_vulnerability_scanning_host_scan_recipe.these resource
oci_vulnerability_scanning_host_scan_target.these resource
oci_artifacts_container_repositories.these data source
oci_core_instances.these data source

Inputs

Name Description Type Default Required
compartments_dependency A map of objects containing the externally managed compartments this module may depend on. All map objects must have the same type and must contain at least an 'id' attribute (representing the compartment OCID) of string type.
map(object({
id = string # the compartment OCID
}))
null no
enable_output Whether Terraform should enable module output. bool true no
module_name The module name. string "vss" no
scanning_configuration Vulnerability scanning configuration settings, defining all aspects to manage scanning aspects in OCI. Please see the comments within each attribute for details.
object({

default_compartment_id = string, # the default compartment where all resources are defined. It's overriden by the compartment_id attribute within vaults and keys attributes. It can be either a compartment OCID or a reference (a key) to the compartment OCID.
default_defined_tags = optional(map(string)), # the default defined tags. It's overriden by the defined_tags attribute within each object.
default_freeform_tags = optional(map(string)), # the default freeform tags. It's overriden by the frreform_tags attribute within each object.

host_recipes = optional(map(object({ # the host recipes to manage in this configuration.
compartment_id = optional(string) # the compartment where the host recipe is created. default_compartment_id is used if undefined. It can be either a compartment OCID or a reference (a key) to the compartment OCID.
name = string # recipe name.
port_scan_level = optional(string)
schedule_settings = optional(object({
type = optional(string)
day_of_week = optional(string)
}))
agent_settings = optional(object({
scan_level = optional(string)
vendor = optional(string)
cis_benchmark_scan_level = optional(string)
}))
file_scan_settings = optional(object({
enable = optional(bool)
scan_recurrence = optional(string)
folders_to_scan = optional(list(string))
operating_system = optional(string)
}))
defined_tags = optional(map(string)) # recipe defined_tags. default_defined_tags is used if undefined.
freeform_tags = optional(map(string)) # recipe freeform_tags. default_freeform_tags is used if undefined.
})))

host_targets = optional(map(object({
compartment_id = optional(string) # the compartment where the host target is created. default_compartment_id is used if undefined. It can be either a compartment OCID or a reference (a key) to the compartment OCID.
name = string
target_compartment_id = string # the target compartment. All hosts (instances) in the compartment are scanning targets. It can be either a compartment OCID or a reference (a key) to the compartment OCID.
target_instance_ids = optional(list(string)) # the specific hosts (instances) to scan in the target compartment. Leave unset to scan all instances. It can be either instances OCIDs or references (keys) to instances OCIDs.
host_recipe_id = string # the recipe id to use for the target. This can be a literal OCID or a referring key within host_recipes.
description = optional(string)
defined_tags = optional(map(string)) # target defined_tags. default_defined_tags is used if undefined.
freeform_tags = optional(map(string)) # target freeform_tags. default_freeform_tags is used if undefined.
})))

container_recipes = optional(map(object({ # the container recipes to manage in this configuration.
compartment_id = optional(string) # the compartment where the container recipe is created. default_compartment_id is used if undefined. It can be either a compartment OCID or a reference (a key) to the compartment OCID.
name = string # recipe name.
scan_level = optional(string) # the scan level. Default: "STANDARD".
image_count = optional(number) # the number of images to scan initially when the recipe is created. Default: 0
defined_tags = optional(map(string)) # recipe defined_tags. default_defined_tags is used if undefined.
freeform_tags = optional(map(string)) # recipe freeform_tags. default_freeform_tags is used if undefined.
})))

container_targets = optional(map(object({
compartment_id = optional(string) # the compartment where the container target is created. default_compartment_id is used if undefined. It can be either a compartment OCID or a reference (a key) to the compartment OCID.
name = string
container_recipe_id = string # the recipe id to use for the target. This can be a literal OCID or a referring key within container_recipes.
description = optional(string)
target_registry = object({
compartment_id = string # the registry target compartment. All containers in the compartment are scanning targets. It can be either a compartment OCID or a reference (a key) to the compartment OCID.
type = optional(string) # the registry type. Default: "OCIR".
repositories = optional(list(string)) # list of repositories to scan images. If undefined, the target defaults to scanning all repos in the compartment_ocid.
url = optional(string) # URL of the registry. Required for non-OCI registry types (for OCI registry types, it can be inferred from the tenancy).
})
defined_tags = optional(map(string)) # target defined_tags. default_defined_tags is used if undefined.
freeform_tags = optional(map(string)) # target freeform_tags. default_freeform_tags is used if undefined.
})))
})
null no

Outputs

Name Description
host_scanning_plugin_state The Cloud Agent VSS plugin state for target instances.
scanning_container_recipes The VSS container recipes.
scanning_container_targets The VSS container targets.
scanning_host_recipes The VSS host (instance) recipes.
scanning_host_targets The VSS host (instance) targets.