generated from rhythmictech/terraform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
139 lines (116 loc) · 3.62 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
##########################################
# Variables
##########################################
variable "ami_id" {
description = "ID of the AMI to use when creating this instance."
type = string
}
variable "create" {
description = "Whether or not this instance should be created. Unfortunately needed for TF < 0.13."
type = bool
default = true
}
variable "ebs_block_device" {
description = "Additional EBS block devices to attach to the instance"
type = list(map(string))
default = []
}
variable "env" {
description = "Name of the environment the Instance will be in."
type = string
}
variable "external_keypair" {
default = null
description = "Name of an external SSH Keypair to associate with this instance. If create_keypair is false and this is left null, no keypair will be associated with the instance."
type = string
}
variable "instance_ip" {
description = "Private IP to assign to the instance, if desired."
type = string
default = null
}
variable "instance_type" {
description = "AWS Instance type, i.e. t3.small."
type = string
}
variable "name" {
description = "Moniker to apply to all resources in the module."
type = string
}
variable "security_groups" {
description = "Security Group IDs to attach to the instance."
type = list(string)
}
variable "subnet_id" {
description = "ID of the subnet in which to create the instance."
type = string
}
variable "tags" {
default = {}
description = "User-Defined tags."
type = map(string)
}
variable "create_keypair" {
default = false
description = "Whether or not to associate an SSH Keypair with this instance. If this is false and no external_keypair is defined, no key will be associated with the instance."
type = bool
}
variable "create_sg" {
default = true
description = "Whether or not to create and associate a security group for the instance. "
type = bool
}
variable "create_ssm" {
default = true
description = "Whether or not to create and associate an IAM managed policy to allow SSM access to the instance."
type = bool
}
variable "route53_record" {
default = ""
description = "Route53 record to point to EC2 instance."
type = string
}
variable "route53_zone_id" {
default = ""
description = "Route53 zone ID for the route53_record."
type = string
}
variable "ssm_access_arn" {
default = ""
description = "Whether or not to associate a pre-created IAM managed policy to allow SSM access to the instance."
type = string
}
variable "userdata_script" {
description = "Userdata script to execute when provisioning the instance."
type = string
default = null
}
variable "volume_iops" {
default = null
description = "IOPS to allocate to the instance's base drive. Only applicable when volume_type is io1, io2 or gp3."
type = number
}
variable "volume_kms_key_id" {
default = null
description = "ID of the KMS Key to attach to the Root EBS volume"
type = string
}
variable "volume_size" {
default = null
description = "Size of the attached volume for this instance."
type = number
}
variable "volume_type" {
default = null
description = "Type of storage for the instance attached volume."
type = string
}
variable "volume_throughput" {
default = null
description = "Value in MiB/s for throughput on instance volume. Only applicable when volume_type is gp3."
type = number
}
variable "vpc" {
description = "VPC ID to create the instance in."
type = string
}