forked from telia-oss/terraform-aws-asg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
110 lines (91 loc) · 2.65 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
# ------------------------------------------------------------------------------
# Data
# ------------------------------------------------------------------------------
data "aws_subnet" "selected" {
id = var.subnet_ids[0]
}
# ------------------------------------------------------------------------------
# Variables
# ------------------------------------------------------------------------------
variable "name_prefix" {
description = "A prefix used for naming resources."
type = string
}
variable "vpc_id" {
description = "The VPC ID."
type = string
default = null
}
variable "subnet_ids" {
description = "ID of subnets where instances can be provisioned."
type = list(string)
}
variable "user_data" {
description = "The user data to provide when launching the instance."
type = string
default = null
}
variable "user_data_base64" {
description = "Use this instead of user_data whenever the value is not a valid UTF-8 string."
type = string
default = null
}
variable "instance_type" {
description = "Type of instance to provision."
type = string
default = "t3.micro"
}
variable "instance_ami" {
description = "The EC2 image ID to launch."
type = string
}
variable "instance_policy" {
description = "A policy document to apply to the instance profile."
type = string
default = ""
}
variable "instance_key" {
description = "The key name that should be used for the instance."
type = string
default = ""
}
variable "instance_volume_size" {
description = "The size of the volume in gigabytes."
type = number
default = 30
}
variable "ebs_block_devices" {
description = "Additional EBS block devices to attach to the instance."
type = list(map(string))
default = []
}
variable "min_size" {
description = "The minimum (and desired) size of the auto scale group."
type = number
default = 1
}
variable "max_size" {
description = "The maximum size of the auto scale group."
type = number
default = 3
}
variable "health_check_type" {
description = "EC2 or ELB. Controls how health checking is done."
type = string
default = "EC2"
}
variable "await_signal" {
description = "Await signals (WaitOnResourceSignals) for the autoscaling rolling update policy."
type = bool
default = false
}
variable "pause_time" {
description = "Pause time for the autoscaling rolling update policy."
type = string
default = "PT5M"
}
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = map(string)
default = {}
}