Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 5.3 KB

File metadata and controls

46 lines (35 loc) · 5.3 KB

Requirements

Name Version
terraform >= 1.3.0

Providers

Name Version
oci n/a

Modules

No modules.

Resources

Name Type
oci_cloud_guard_cloud_guard_configuration.this resource
oci_cloud_guard_security_recipe.these resource
oci_cloud_guard_security_zone.these resource
oci_cloud_guard_cloud_guard_configuration.this data source
oci_cloud_guard_security_policies.these data source
oci_identity_regions.these data source
oci_identity_tenancy.this 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 "security-zones" no
security_zones_configuration Security Zones configuration.
object({
default_cis_level = optional(string) # The default CIS level for all recipes with an unspecified cis_level. Valid values: "1" and "2". Default: "1"
default_security_policies_ocids = optional(list(string)) # The list of default Security Zone policies OCIDs for all recipes with an unspecified security_policies_ocids. These are merged with CIS Security Zone policies driven off cis_level.
default_defined_tags = optional(map(string))
default_freeform_tags = optional(map(string))
reporting_region = optional(string) # the reporting region.
self_manage_resources = optional(bool) # whether Oracle managed resources are created by customers. Default: false.
enable_obp_checks = optional(bool) # Checks whether the user can deploy Security Zone resources in the root compartment. Default: true.

recipes = optional(map(object({
name = string
compartment_id = string # the compartment where the Security Zone Recipe is created. It can be either the compartment OCID or a reference (a key) to the compartment OCID.
description = optional(string)
cis_level = optional(string) # Valid values: "1" and "2". Default: "1"
security_policies_ocids = optional(list(string)) # List of default Security Zone policies OCIDs that are merged with CIS Security Zone policies. These are merged with CIS Security Zone policies driven off cis_level.
defined_tags = optional(map(string))
freeform_tags = optional(map(string))
})))

security_zones = map(object({
name = string # The Security Zone name.
compartment_id = string # The Security Zone compartment. It can be either the compartment OCID or a reference (a key) to the compartment OCID. Any existing Cloud Guard target for this compartment is replaced with the security zone. The security zone includes the default Oracle-managed configuration and activity detector recipes in Cloud Guard, and also scans resources in the zone for policy violations.
recipe_key = string # The recipe key in recipes attribute.
description = optional(string) # The security zone description.
defined_tags = optional(map(string))
freeform_tags = optional(map(string))
}))
})
null no
tenancy_ocid The tenancy OCID. string n/a yes

Outputs

Name Description
cloud_guard_config_status_before_apply n/a
configuration Cloud Guard configuration information.
recipes The security zones recipes.
security_zones The security zones.