-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
74 lines (60 loc) · 2.11 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
// labelling
variable "name" {
type = string
default = "athena"
}
variable "namespace" {
type = string
}
variable "stage" {
type = string
}
variable "tags" {
type = map(string)
default = {}
}
// Athena
variable "create_database" {
type = bool
default = true
description = "A boolean that indicates if the new database should be created."
}
variable "database_name" {
type = string
default = null
description = "Name of the existing database. Required if create_database variable is false"
}
variable "bucket_name" {
type = string
default = null
description = "Name of the Athena database bucket. Required if create_database is true"
}
variable "database_force_destroy" {
type = bool
default = false
description = "A boolean that indicates all tables should be deleted from the database so that the database can be destroyed without error. The tables are not recoverable."
}
variable "queries" {
type = map(string)
description = "A map of Athena query SQLs where key is the query name and the value is the path to the file containing the query"
}
variable "query_output_locations" {
type = map(string)
default = {}
description = "A map of output locations (S3 URLs) for Athena queries. Keys are query names identical to the map above"
}
variable "query_output_buckets_kms_keys" {
type = map(string)
default = {}
description = "A map of KMS keys used to encrypt data in output S3 buckets for Athena queries. Keys are query names identical to the map above. Results will not be encrypted if the key for a query is not defined in the map."
}
variable "enforce_workgroup_configuration" {
type = string
default = false
description = "Enforce workgroup configuration. Client side configuration will be ignored"
}
variable "query_template_parameters" {
type = map(string)
default = {}
description = "A map of key value pairs used to customise Athena queries. These are typically environment/stage specific. If omitted, only available query template parameters will be db_name and env."
}