-
Notifications
You must be signed in to change notification settings - Fork 15
/
variables.tf
92 lines (76 loc) · 2.99 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
variable "use_existing_s3_bucket" {
description = "Whether to use an existing S3 bucket or create a new one. Regardless, `s3_bucket_name` must contain the name of the bucket."
type = bool
}
variable "s3_bucket_name" {
description = "Name of the S3 bucket into which CUR will put the cost data."
type = string
}
variable "s3_use_existing_kms_key" {
description = "Whether to use an existing KMS CMK for S3 SSE."
type = bool
}
variable "s3_kms_key_alias" {
description = "Alias for the KMS CMK, existing or otherwise."
type = string
default = ""
}
variable "report_name" {
description = "Name of the Cost and Usage Report which will be created."
type = string
}
variable "report_frequency" {
description = "How often the Cost and Usage Report will be generated. HOURLY or DAILY."
type = string
}
variable "report_versioning" {
description = "Whether reports should be overwritten or new ones should be created."
type = string
}
variable "report_format" {
description = "Format for report. Valid values are: textORcsv, Parquet. If Parquet is used, then Compression must also be Parquet."
type = string
}
variable "report_compression" {
description = "Compression format for report. Valid values are: GZIP, ZIP, Parquet. If Parquet is used, then format must also be Parquet."
type = string
}
variable "report_additional_artifacts" {
description = "A list of additional artifacts. Valid values are: REDSHIFT, QUICKSIGHT, ATHENA. When ATHENA exists within additional_artifacts, no other artifact type can be declared and report_versioning must be OVERWRITE_REPORT."
type = set(string)
}
variable "s3_bucket_prefix" {
description = "Prefix in the S3 bucket to put reports."
type = string
default = ""
}
variable "cur_role_arn" {
description = "ARN of the role to assume in order to provision the Cost and Usage Reports S3 bucket in us-east-1."
type = string
default = ""
}
variable "cur_role_session_name" {
description = "Session name to use when assuming `cur_role_arn`."
type = string
default = null
}
variable "lambda_log_group_retention_days" {
description = "Number of days to retain logs from the Lambda function, which ensures Glue Crawler runs when new CUR data is available."
type = number
default = 14
}
variable "glue_crawler_create_log_group" {
description = "Whether to create a CloudWatch Log Group for the Glue Crawler. Crawlers share Log Group, and this gives the option of managing the Log Group with retention through this module."
type = bool
default = true
}
variable "glue_crawler_log_group_retention_days" {
description = "Number of days to retain logs from the Glue Crawler, which populates the Athena table whenever new CUR data is available."
type = number
default = 14
}
variable "tags" {
description = "Tags which will be applied to provisioned resources."
type = map(string)
default = {}
}