forked from chrissng/terraform-aws-emr-cluster
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
89 lines (72 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
variable "project" {
description = "Name of project this cluster is for"
default = "Unknown"
}
variable "environment" {
description = "Name of environment this cluster is targeting"
default = "Unknown"
}
variable "name" {
description = "Name of EMR cluster"
}
variable "custom_ami_id" {
description = "Custom AMI ID to base the EMR EC2 instance on"
}
variable "vpc_id" {
description = "ID of VPC meant to house cluster"
}
variable "release_label" {
default = "emr-5.7.0"
description = "EMR release version to use"
}
variable "applications" {
description = "List of EMR release applications"
default = ["Spark"]
type = "list"
}
variable "configurations" {
description = "JSON array of EMR application configurations"
}
variable "ebs_root_volume_size" {
description = <<EOF
Size in GiB of the EBS root device volume of the Linux AMI that is used for each EC2 instance.
Available in Amazon EMR version 4.x and later.
EOF
default = 10
}
variable "key_name" {
description = "EC2 key pair name"
}
variable "subnet_id" {
description = "Subnet used to house the EMR nodes"
}
variable "instance_groups" {
description = "List of objects for each desired instance group"
default = [
{
name = "MasterInstanceGroup"
instance_role = "MASTER"
instance_type = "m3.xlarge"
instance_count = 1
},
{
name = "CoreInstanceGroup"
instance_role = "CORE"
instance_type = "m3.xlarge"
instance_count = "1"
bid_price = "0.30"
},
]
type = "list"
}
variable "additional_master_security_groups" {
description = "Additional master security groups to place the EMR EC2 instances in"
}
variable "custom_tags" {
description = "Custom tags to add to the default EMR tags"
default = {}
type = "map"
}
variable "log_uri" {
description = "S3 URI of the EMR log destination, must begin with `s3n://` and end with trailing"
}