forked from hashicorp-modules/hashistack-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
158 lines (127 loc) · 4.04 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
157
158
variable "create" {
description = "Create Module, defaults to true."
default = true
}
variable "name" {
description = "Name for resources, defaults to \"vault-aws\"."
default = "vault-aws"
}
variable "release_version" {
description = "Release version tag (e.g. 0.1.0, 0.1.0-rc1, 0.1.0-beta1, 0.1.0-dev1), defaults to \"0.1.0\", view releases at https://github.com/hashicorp/guides-configuration#hashistack-version-tables"
default = "0.1.0"
}
variable "consul_version" {
description = "Consul version tag (e.g. 1.0.6 or 1.0.6-ent), defaults to \"1.0.6\"."
default = "1.0.6"
}
variable "vault_version" {
description = "Vault version tag (e.g. 0.10.0 or 0.10.0-ent), defaults to \"0.10.0\"."
default = "0.10.0"
}
variable "nomad_version" {
description = "Nomad version tag (e.g. 0.8.0 or 0.8.0-ent), defaults to \"0.8.0\"."
default = "0.8.0"
}
variable "os" {
description = "Operating System (e.g. RHEL or Ubuntu), defaults to \"RHEL\"."
default = "RHEL"
}
variable "os_version" {
description = "Operating System version (e.g. 7.3 for RHEL or 16.04 for Ubuntu), defaults to \"7.3\"."
default = "7.3"
}
variable "vpc_id" {
description = "VPC ID to provision resources in."
}
variable "vpc_cidr" {
description = "VPC CIDR block to provision resources in."
}
variable "subnet_ids" {
description = "Subnet ID(s) to provision resources in."
type = "list"
}
variable "public" {
description = "Open up nodes to the public internet for easy access - DO NOT DO THIS IN PROD, defaults to false."
default = false
}
variable "count" {
description = "Number of HashiStack nodes to provision across private subnets, defaults to private subnet count."
default = -1
}
variable "instance_type" {
description = "AWS instance type for HashiStack node (e.g. \"m4.large\"), defaults to \"t2.small\"."
default = "t2.small"
}
variable "image_id" {
description = "AMI to use, defaults to the HashiStack AMI."
default = ""
}
variable "instance_profile" {
description = "AWS instance profile to use."
default = ""
}
variable "user_data" {
description = "user_data script to pass in at runtime."
default = ""
}
variable "ssh_key_name" {
description = "AWS key name you will use to access the instance(s)."
}
variable "use_lb_cert" {
description = "Use certificate passed in for the LB IAM listener, \"lb_cert\" and \"lb_private_key\" must be passed in if true, defaults to false."
default = false
}
variable "lb_cert" {
description = "Certificate for LB IAM server certificate."
default = ""
}
variable "lb_private_key" {
description = "Private key for LB IAM server certificate."
default = ""
}
variable "lb_cert_chain" {
description = "Certificate chain for LB IAM server certificate."
default = ""
}
variable "lb_ssl_policy" {
description = "SSL policy for LB, defaults to \"ELBSecurityPolicy-2016-08\"."
default = "ELBSecurityPolicy-2016-08"
}
variable "lb_bucket" {
description = "S3 bucket override for LB access logs, `lb_bucket_override` be set to true if overriding"
default = ""
}
variable "lb_bucket_override" {
description = "Override the default S3 bucket created for access logs with `lb_bucket`, defaults to false."
default = false
}
variable "lb_bucket_prefix" {
description = "S3 bucket prefix for LB access logs."
default = ""
}
variable "lb_logs_enabled" {
description = "S3 bucket LB access logs enabled, defaults to true."
default = true
}
variable "target_groups" {
description = "List of target group ARNs to apply to the autoscaling group."
type = "list"
default = []
}
variable "users" {
description = "Map of SSH users."
default = {
RHEL = "ec2-user"
Ubuntu = "ubuntu"
}
}
variable "tags" {
description = "Optional map of tags to set on resources, defaults to empty map."
type = "map"
default = {}
}
variable "tags_list" {
description = "Optional list of tag maps to set on resources, defaults to empty list."
type = "list"
default = []
}