-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
98 lines (92 loc) · 3.68 KB
/
variables.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Copyright (c) 2023 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
variable "tenancy_ocid" {
description = "The tenancy OCID"
type = string
default = null
}
variable "logging_configuration" {
description = "Logging configuration settings, defining all aspects to manage logging in OCI. Please see the comments within each attribute for details."
type = object({
enable_cis_checks = optional(bool,true), # Whether to enforce CIS benchmark and framework recommendations. Default is true.
default_compartment_id = string,
default_defined_tags = optional(map(string)),
default_freeform_tags = optional(map(string)),
onboard_logging_analytics = optional(bool),
log_groups = optional(map(object({
type = optional(string)
compartment_id = optional(string)
name = string
description = optional(string)
freeform_tags = optional(map(string))
defined_tags = optional(map(string))
})),{})
service_logs = optional(map(object({
name = string
log_group_id = string
service = string
category = string
resource_id = string
is_enabled = optional(bool)
retention_duration = optional(number,90)
defined_tags = optional(map(string))
freeform_tags = optional(map(string))
})),{})
flow_logs = optional(map(object({
name_prefix = optional(string)
log_group_id = string
target_resource_type = string
target_compartment_ids = list(string)
is_enabled = optional(bool)
retention_duration = optional(number,90)
defined_tags = optional(map(string))
freeform_tags = optional(map(string))
})),{})
bucket_logs = optional(map(object({
name_prefix = optional(string)
log_group_id = string
target_compartment_ids = list(string)
category = string
is_enabled = optional(bool)
retention_duration = optional(number,90)
defined_tags = optional(map(string))
freeform_tags = optional(map(string))
})),{})
custom_logs = optional(map(object({
name = string
compartment_id = optional(string)
log_group_id = string
dynamic_groups = list(string)
parser_type = optional(string)
path = list(string)
is_enabled = optional(bool)
retention_duration = optional(number,90)
defined_tags = optional(map(string))
freeform_tags = optional(map(string))
})),{})
})
}
variable "enable_output" {
description = "Whether Terraform should enable module output."
type = bool
default = true
}
variable "module_name" {
description = "The module name."
type = string
default = "logging"
}
variable compartments_dependency {
description = "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."
type = map(object({
id = string
}))
default = null
}
variable "log_groups_dependency" {
description = "A map of objects containing the externally managed log_groups this module may depend on. All map objects must have the same type and must contain at least an 'id' attribute (representing the log group OCID) of string type."
type = map(object({
id = string
}))
default = null
}