forked from Puppet-Finland/terraform-aws_instance_wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
input.tf
148 lines (121 loc) · 2.57 KB
/
input.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
variable "ami" {
}
# Setting "amount" to 0 is equivalent to "ensure => absent" in Puppet
variable "amount" {
type = number
default = 1
}
# Whether to install Puppet Agent or not.
variable "install_puppet_agent" {
type = bool
default = true
}
variable "associate_public_ip_address" {
type = bool
default = true
}
# Create Cloudwatch alarm to restart this instance if the instance check fails.
variable "restart_on_instance_failure" {
type = bool
default = false
}
# Create Cloudwatch alarm to restart this instance if the system check fails.
variable "restart_on_system_failure" {
type = bool
default = false
}
# Notify an SNS topic unless set to "none"
variable "sns_topic_arn" {
type = string
default = "none"
}
variable "default_root_block_device" {
type = list(map(string))
}
variable "deployment" {
type = string
default = ""
}
# This parameter expects a map in this format:
#
# { ephemeral0 = "/dev/sdb", ephemeral1 = "/dev/sdc" }
#
# Note that this triggers a useless rebuild of the instance if you don't have
# any ephemeral (instance store) volumes attached to it. If you do have such
# volumes attached you need to remove those devices using the AWS CLI or adding
# of Cloudwatch alarms will fail (for whatever reason).
#
variable "disabled_ephemeral_block_devices" {
type = map(string)
default = {}
}
# This parameter expects a map in this format:
#
# { "0" = aws_network_interface.foo.id, "1" = aws_network_interface.bar.id }
variable "network_interfaces" {
type = map(string)
default = {}
}
variable "ebs_optimized" {
type = bool
default = true
}
variable "disable_api_termination" {
type = bool
default = true
}
variable "hostname" {
type = string
}
variable "instance_type" {
type = string
default = "t2.micro"
}
variable "iam_instance_profile" {
type = string
default = ""
}
variable "key_name" {
type = string
default = "terraform"
}
variable "private_ip" {
type = string
default = ""
}
# By default use "deployment" as the Puppet environment name
variable "puppet_environment" {
type = string
default = "false"
}
variable "puppet_version" {
type = number
default = 6
}
variable "puppetmaster_ip" {
type = string
default = ""
}
variable "region" {
type = string
}
variable "source_dest_check" {
type = bool
default = true
}
variable "subnet_id" {
type = string
default = null
}
variable "tags" {
type = map(string)
default = {}
}
variable "volume_tags" {
type = map(string)
default = null
}
variable "vpc_security_group_ids" {
type = list(string)
default = []
}