forked from cloudposse/terraform-aws-cloudtrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
67 lines (56 loc) · 1.94 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
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 = false
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 "enable_logging" {
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"
}