oci_cloud_guard_security_zone

This resource provides the Security Zone resource in Oracle Cloud Infrastructure Cloud Guard service.

Creates a security zone for a compartment. A security zone enforces all security zone policies in a given security zone recipe. Any actions that violate a policy are denied. By default, any subcompartments are also in the same security zone.

Example Usage

resource "oci_cloud_guard_security_zone" "test_security_zone" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.security_zone_display_name
	security_zone_recipe_id = oci_cloud_guard_security_zone_recipe.test_security_zone_recipe.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.security_zone_description
	freeform_tags = {"bar-key"= "value"}
}

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

Import

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

$ terraform import oci_cloud_guard_security_zone.test_security_zone "id"