forked from oci-landing-zones/oracle-enterprise-landingzone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
43 lines (35 loc) · 1.39 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
terraform {
required_providers {
oci = {
source = "oracle/oci"
configuration_aliases = [oci, oci.home_region]
}
}
}
resource "oci_cloud_guard_cloud_guard_configuration" "cloud_guard_configuration" {
provider = oci.home_region
compartment_id = var.tenancy_ocid
reporting_region = var.region
status = var.status
}
resource "oci_cloud_guard_target" "cloud_guard_target" {
provider = oci.home_region
compartment_id = var.compartment_id
display_name = var.display_name
target_resource_id = var.target_resource_id
target_resource_type = var.target_resource_type
description = var.description
target_detector_recipes {
detector_recipe_id = data.oci_cloud_guard_detector_recipes.configuration_detector_recipe.detector_recipe_collection.0.items.0.id
}
target_detector_recipes {
detector_recipe_id = data.oci_cloud_guard_detector_recipes.activity_detector_recipe.detector_recipe_collection.0.items.0.id
}
target_detector_recipes {
detector_recipe_id = data.oci_cloud_guard_detector_recipes.threat_detector_recipe.detector_recipe_collection.0.items.0.id
}
target_responder_recipes {
responder_recipe_id = data.oci_cloud_guard_responder_recipes.responder_recipe.responder_recipe_collection.0.items.0.id
}
depends_on = [oci_cloud_guard_cloud_guard_configuration.cloud_guard_configuration]
}