-
Notifications
You must be signed in to change notification settings - Fork 9
/
variables.tf
156 lines (131 loc) · 4.15 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#
# Variables for the Apache Spark terraform module.
#
# Copyright 2016-2022, Frederico Martins
# Author: Frederico Martins <https://github.com/fscm>
#
# SPDX-License-Identifier: MIT
#
# This program is free software. You can use it and/or modify it under the
# terms of the MIT License.
#
variable "ami_id" {
description = "The id of the AMI to use for the instance(s)."
type = "string"
}
variable "associate_public_ip_address" {
description = "Associate a public IP address to the Apache Spark instance(s)."
default = false
type = "string"
}
variable "domain" {
description = "The domain name to use for the Apache Spark instance(s)."
type = "string"
}
variable "extra_security_group_id" {
description = "Extra security group to assign to the Apache Spark instance(s) (e.g.: 'sg-3f983f98')."
default = ""
type = "string"
}
variable "keyname" {
description = "The SSH key name to use for the Apache Spark instance(s)."
type = "string"
}
variable "name" {
description = "The main name that will be used for the Apache Spark instance(s)."
default = "spark"
type = "string"
}
variable "number_of_masters" {
description = "Number of Apache Spark Master instances. NOT USED YET."
default = "1"
type = "string"
}
variable "prefix" {
description = "A prefix to prepend to the Apache Spark instance(s) name."
default = ""
type = "string"
}
variable "private_zone_id" {
description = "The ID of the hosted zone for the private DNS record(s)."
default = ""
type = "string"
}
variable "public_zone_id" {
description = "The ID of the hosted zone for the public DNS record(s)."
default = ""
type = "string"
}
variable "spark_master_heap_size" {
description = "The heap size for the Apache Spark Master instance(s) (e.g.: '1G')."
default = ""
type = "string"
}
variable "spark_master_instance_type" {
description = "The type of instance to use for the Apache Spark Master instance(s)."
default = "t2.small"
type = "string"
}
variable "spark_master_root_volume_iops" {
description = "The amount of provisioned IOPS (for 'io1' type only)."
default = 0
type = "string"
}
variable "spark_master_root_volume_size" {
description = "The volume size in gigabytes."
default = "8"
type = "string"
}
variable "spark_master_root_volume_type" {
description = "The volume type. Must be one of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD)."
default = "gp2"
type = "string"
}
variable "spark_worker_heap_size" {
description = "The heap size for the Apache Spark Worker instance(s) (e.g.: '1G')."
default = ""
type = "string"
}
variable "spark_worker_instance_type" {
description = "The type of instance to use for the Apache Spark Worker instance(s)."
default = "t2.small"
type = "string"
}
variable "spark_worker_max_instances" {
description = "Maximum number of Apache Spark Worker instances in the cluster."
default = "1"
type = "string"
}
variable "spark_worker_min_instances" {
description = "Minimum number of Apache Spark Worker instances in the cluster."
default = "1"
type = "string"
}
variable "spark_worker_root_volume_iops" {
description = "The amount of provisioned IOPS (for 'io1' type only)."
default = 0
type = "string"
}
variable "spark_worker_root_volume_size" {
description = "The volume size in gigabytes."
default = "8"
type = "string"
}
variable "spark_worker_root_volume_type" {
description = "The volume type. Must be one of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD)."
default = "gp2"
type = "string"
}
variable "subnet_ids" {
description = "List of Subnet IDs to launch the instance(s) in (e.g.: ['subnet-0zfg04s2','subnet-6jm2z54q'])."
type = "list"
}
variable "ttl" {
description = "The TTL (in seconds) for the DNS record(s)."
default = "600"
type = "string"
}
variable "vpc_id" {
description = "The VPC ID for the security group(s)."
type = "string"
}