-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
141 lines (111 loc) · 3.55 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
variable "additional_user_data_script" {
default = ""
}
variable "allowed_cidr_blocks" {
default = ["0.0.0.0/0"]
type = list(string)
description = "List of subnets to allow into the ECS Security Group. Defaults to ['0.0.0.0/0']"
}
variable "ami" {
default = ""
}
variable "ami_version" {
default = "*"
}
variable "associate_public_ip_address" {
default = false
}
variable "consul_image" {
description = "Image to use when deploying consul, defaults to the hashicorp consul image"
default = "consul:latest"
}
variable "docker_storage_size" {
default = "22"
description = "EBS Volume size in Gib that the ECS Instance uses for Docker images and metadata "
}
variable "dockerhub_email" {
default = ""
description = "Email Address used to authenticate to dockerhub. http://docs.aws.amazon.com/AmazonECS/latest/developerguide/private-auth.html"
}
variable "dockerhub_token" {
default = ""
description = "Auth Token used for dockerhub. http://docs.aws.amazon.com/AmazonECS/latest/developerguide/private-auth.html"
}
variable "ebs_snapshot_matcher" {
default = "valhalla-elevation-data-*"
description = "String to use in matching the EBS snapshot of the Valhalla elevation data"
}
variable "enable_agents" {
default = false
description = "Enable Consul Agent and Registrator tasks on each ECS Instance"
}
variable "extra_tags" {
default = []
}
variable "heartbeat_timeout" {
description = "Heartbeat Timeout setting for how long it takes for the graceful shutodwn hook takes to timeout. This is useful when deploying clustered applications like consul that benifit from having a deploy between autoscaling create/destroy actions. Defaults to 180"
default = "180"
}
variable "iam_path" {
default = "/"
description = "IAM path, this is useful when creating resources with the same name across multiple regions. Defaults to /"
}
variable "custom_iam_policy" {
default = ""
description = "Custom IAM policy (JSON). If set will overwrite the default one"
}
variable "instance_type" {
default = "t2.micro"
description = "AWS Instance type, if you change, make sure it is compatible with AMI, not all AMIs allow all instance types "
}
variable "key_name" {
description = "SSH key name in your AWS account for AWS instances."
}
variable "min_servers" {
description = "Minimum number of ECS servers to run."
default = 1
}
variable "max_servers" {
description = "Maximum number of ECS servers to run."
default = 10
}
variable "name" {
description = "AWS ECS Cluster Name"
}
variable "name_prefix" {
default = ""
}
variable "region" {
default = "us-east-1"
description = "The region of AWS, for AMI lookups."
}
variable "registrator_image" {
default = "gliderlabs/registrator:latest"
description = "Image to use when deploying registrator agent, defaults to the gliderlabs registrator:latest image"
}
variable "security_group_ids" {
type = list(string)
description = "A list of Security group IDs to apply to the launch configuration"
default = []
}
variable "servers" {
default = "1"
description = "The number of servers to launch."
}
variable "subnet_id" {
type = list(string)
description = "The AWS Subnet ID in which you want to delpoy your instances"
}
variable "tagName" {
default = "ECS Node"
description = "Name tag for the servers"
}
variable "user_data" {
default = ""
}
variable "vpc_id" {
description = "The AWS VPC ID which you want to deploy your instances"
}
variable "aws_ami_owners" {
type = list(string)
}