oci_data_safe_security_assessment

This resource provides the Security Assessment resource in Oracle Cloud Infrastructure Data Safe service.

Creates a new saved security assessment for one or multiple targets in a compartment. When this operation is performed, it will save the latest assessments in the specified compartment. If a schedule is passed, it will persist the latest assessments, at the defined date and time, in the format defined by RFC3339.

Example Usage

resource "oci_data_safe_security_assessment" "test_security_assessment" {
	#Required
	compartment_id = var.compartment_id
	target_id = oci_cloud_guard_target.test_target.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.security_assessment_description
	display_name = var.security_assessment_display_name
	freeform_tags = {"Department"= "Finance"}
	schedule = var.security_assessment_schedule
}

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

Import

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

$ terraform import oci_data_safe_security_assessment.test_security_assessment "id"