-
Notifications
You must be signed in to change notification settings - Fork 18
/
variables.tf
90 lines (75 loc) · 2.11 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
# ------------------------------------------------------------------------------
# Variables
# ------------------------------------------------------------------------------
variable "name_prefix" {
description = "A prefix used for naming resources."
}
variable "vpc_id" {
description = "The VPC ID."
}
variable "subnet_ids" {
description = "ID of subnets where instances can be provisioned."
type = "list"
}
variable "user_data" {
description = "The user data to provide when launching the instance."
default = ""
}
variable "instance_type" {
description = "Type of instance to provision."
default = "t2.micro"
}
variable "instance_ami" {
description = "The EC2 image ID to launch."
default = "ami-db51c2a2"
}
variable "instance_key" {
description = "The key name that should be used for the instance."
default = ""
}
variable "instance_volume_size" {
description = "The size of the volume in gigabytes."
default = "8"
}
// Workaround because we cannot use count since the passed policy can be computed in some cases.
variable "instance_policy" {
description = "A policy document to apply to the instance profile."
default = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "denynothing",
"Effect": "Deny",
"NotAction": "*",
"NotResource": "*"
}
]
}
EOF
}
variable "min_size" {
description = "The minimum (and desired) size of the auto scale group. "
default = "1"
}
variable "max_size" {
description = "The maximum size of the auto scale group."
default = "3"
}
variable "health_check_type" {
description = "EC2 or ELB. Controls how health checking is done."
default = "EC2"
}
variable "await_signal" {
description = "Await signals (WaitOnResourceSignals) for the autoscaling rolling update policy."
default = "false"
}
variable "pause_time" {
description = "Pause time for the autoscaling rolling update policy."
default = "PT5M"
}
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = "map"
default = {}
}