@@ -16,15 +16,25 @@ description: |-
1616resource "aquasec_host_runtime_policy" "host_runtime_policy" {
1717 name = "host_runtime_policy"
1818 description = "host_runtime_policy"
19- scope_variables {
20- attribute = "kubernetes.cluster"
21- value = "default"
22- }
23- scope_variables {
24- attribute = "kubernetes.label"
25- name = "app"
26- value = "aqua"
19+
20+ scope {
21+ expression = "v1 && v2 || v3"
22+
23+ variables {
24+ attribute = "aqua.hostgroup"
25+ value = "production"
26+ }
27+ variables {
28+ attribute = "cloud.awsaccount"
29+ value = "xxxxxxxxx"
30+ }
31+ variables {
32+ attribute = "os.hostname"
33+ name = "name"
34+ value = "10.0.0.1"
35+ }
2736 }
37+
2838
2939 application_scopes = [
3040 "Global",
@@ -37,19 +47,19 @@ resource "aquasec_host_runtime_policy" "host_runtime_policy" {
3747 "blocked",
3848 ]
3949 file_integrity_monitoring {
40- monitor_create = true
41- monitor_read = true
42- monitor_modify = true
43- monitor_delete = true
44- monitor_attributes = true
45- monitored_paths = ["paths"]
46- excluded_paths = ["expaths"]
47- monitored_processes = ["process"]
48- excluded_processes = ["exprocess"]
49- monitored_users = ["user"]
50- excluded_users = ["expuser"]
50+ enabled = true
51+ monitored_files_read = true
52+ monitored_files_modify = true
53+ monitored_files_delete = true
54+ monitored_files_attributes = false
55+ monitored_files = ["paths"]
56+ exceptional_monitored_files = ["expaths"]
57+ monitored_files_processes = ["process"]
58+ exceptional_monitored_files_processes = ["exprocess"]
59+ monitored_files_users = ["user"]
60+ exceptional_monitored_files_users = ["expuser"]
5161 }
52- audit_all_os_user_activity = true
62+
5363 audit_full_command_arguments = true
5464 audit_host_successful_login_events = true
5565 audit_host_failed_login_events = true
@@ -66,9 +76,7 @@ resource "aquasec_host_runtime_policy" "host_runtime_policy" {
6676 os_groups_blocked = [
6777 "group2",
6878 ]
69- package_block = [
70- "package1"
71- ]
79+
7280 monitor_system_time_changes = true
7381 monitor_windows_services = true
7482 monitor_system_log_integrity = true
@@ -461,6 +469,10 @@ Required:
461469- ` attribute ` (String) Variable attribute.
462470- ` value ` (String) Variable value.
463471
472+ Optional:
473+
474+ - ` name ` (String)
475+
464476
465477
466478<a id =" nestedblock--scope_variables " ></a >
0 commit comments