forked from cloudposse/terraform-aws-cloudtrail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
94 lines (78 loc) · 2.71 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
variable "enable_log_file_validation" {
type = bool
default = true
description = "Specifies whether log file integrity validation is enabled. Creates signed digest for validated contents of logs"
}
variable "is_multi_region_trail" {
type = bool
default = true
description = "Specifies whether the trail is created in the current region or in all regions"
}
variable "include_global_service_events" {
type = bool
default = false
description = "Specifies whether the trail is publishing events from global services such as IAM to the log files"
}
variable "insight_selector" {
type = list(object({
insight_type = string
}))
default = []
description = "Specifies an insight selector for identifying unusual operational activity. See: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudtrail#insight_type details for this variable"
}
variable "enable_logging" {
type = bool
default = true
description = "Enable logging for the trail"
}
variable "cloud_watch_logs" {
type = bool
default = true
description = "Enable logging for the trail"
}
variable "s3_bucket_name" {
type = string
description = "S3 bucket name for CloudTrail logs"
}
variable "cloud_watch_logs_role_arn" {
type = string
description = "Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group"
default = ""
}
variable "cloud_watch_logs_group_arn" {
type = string
description = "Specifies a log group name using an Amazon Resource Name (ARN), that represents the log group to which CloudTrail logs will be delivered"
default = ""
}
variable "event_selector" {
type = list(object({
include_management_events = bool
read_write_type = string
data_resource = list(object({
type = string
values = list(string)
}))
}))
description = "Specifies an event selector for enabling data event logging. See: https://www.terraform.io/docs/providers/aws/r/cloudtrail.html for details on this variable"
default = []
}
variable "kms_key_arn" {
type = string
description = "Specifies the KMS key ARN to use to encrypt the logs delivered by CloudTrail"
default = ""
}
variable "is_organization_trail" {
type = bool
default = false
description = "The trail is an AWS Organizations trail"
}
variable "sns_topic_name" {
type = string
description = "Specifies the name of the Amazon SNS topic defined for notification of log file delivery"
default = null
}
variable "s3_key_prefix" {
type = string
description = "Prefix for S3 bucket used by Cloudtrail to store logs"
default = null
}