forked from terraform-aws-modules/terraform-aws-redshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
138 lines (109 loc) · 4.36 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
variable "cluster_identifier" {
description = "Custom name of the cluster"
}
variable "cluster_version" {
description = "Version of Redshift engine cluster"
default = "1.0"
# Constraints: Only version 1.0 is currently available.
# http://docs.aws.amazon.com/cli/latest/reference/redshift/create-cluster.html
}
variable "cluster_node_type" {
description = "Node Type of Redshift cluster"
# Valid Values: dc1.large | dc1.8xlarge | dc2.large | dc2.8xlarge | ds2.xlarge | ds2.8xlarge.
# http://docs.aws.amazon.com/cli/latest/reference/redshift/create-cluster.html
}
variable "cluster_number_of_nodes" {
description = "Number of nodes in the cluster (values greater than 1 will trigger 'cluster_type' of 'multi-node')"
default = 3
}
variable "cluster_database_name" {
description = "The name of the database to create"
}
# Self-explainatory variables
variable "cluster_master_username" {}
variable "cluster_master_password" {}
variable "cluster_port" {
default = 5439
}
# This is for a custom parameter to be passed to the DB
# We're "cloning" default ones, but we need to specify which should be copied
variable "cluster_parameter_group" {
description = "Parameter group, depends on DB engine used"
default = "redshift-1.0"
}
variable "cluster_iam_roles" {
description = "A list of IAM Role ARNs to associate with the cluster. A Maximum of 10 can be associated to the cluster at any time."
type = "list"
default = []
}
variable "publicly_accessible" {
description = "Determines if Cluster can be publicly available (NOT recommended)"
default = false
}
variable "redshift_subnet_group_name" {
description = "The name of a cluster subnet group to be associated with this cluster. If not specified, new subnet will be created."
default = ""
}
variable "parameter_group_name" {
description = "The name of the parameter group to be associated with this cluster. If not specified new parameter group will be created."
default = ""
}
variable "subnets" {
description = "List of subnets DB should be available at. It might be one subnet."
default = []
}
variable "vpc_security_group_ids" {
description = "A list of Virtual Private Cloud (VPC) security groups to be associated with the cluster."
default = []
}
variable "final_snapshot_identifier" {
description = "(Optional) The identifier of the final snapshot that is to be created immediately before deleting the cluster. If this parameter is provided, 'skip_final_snapshot' must be false."
default = false
}
variable "skip_final_snapshot" {
description = "If true (default), no snapshot will be made before deleting DB"
default = true
}
variable "preferred_maintenance_window" {
description = "When AWS can run snapshot, can't overlap with maintenance window"
default = "sat:10:00-sat:10:30"
}
variable "automated_snapshot_retention_period" {
description = "How long will we retain backups"
default = 0
}
variable "enable_logging" {
description = "Enables logging information such as queries and connection attempts, for the specified Amazon Redshift cluster."
default = false
}
variable "logging_bucket_name" {
description = "(Optional, required when enable_logging is true) The name of an existing S3 bucket where the log files are to be stored. Must be in the same region as the cluster and the cluster must have read bucket and put object permissions."
default = false
}
variable "logging_s3_key_prefix" {
description = "(Optional) The prefix applied to the log file names."
default = false
}
variable "wlm_json_configuration" {
default = "[{\"query_concurrency\": 5}]"
}
variable "tags" {
description = "A mapping of tags to assign to all resources"
default = {}
}
variable "encrypted" {
description = "(Optional) If true , the data in the cluster is encrypted at rest."
default = false
}
variable "kms_key_id" {
description = "(Optional) The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true."
default = ""
}
variable "enhanced_vpc_routing" {
description = "(Optional) If true, enhanced VPC routing is enabled."
default = false
}
variable "allow_version_upgrade" {
description = "(Optional) If true, major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster."
default = true
}