-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
181 lines (152 loc) · 4.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#
# General
#
variable "prefix" {
type = string
description = "Prefix"
default = "default"
}
variable "name" {
type = string
description = "Name"
}
#
# EC2 Attributes
#
variable "ami_id" {
type = string
description = "AMI Identifier"
default = ""
}
variable "aws_ami_os_id" {
type = string
description = "AWS AMI Operating System Identificator"
default = "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"
}
variable "aws_ami_os_owner" {
type = string
description = "AWS AMI Operating System Owner, eg: 099720109477 for Canonical "
default = "099720109477"
}
variable "instance_type" {
type = string
description = "EC2 Instance Type"
default = "t3.micro"
}
variable "instance_profile" {
type = string
description = "The IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile."
default = ""
}
variable "ebs_optimized" {
type = string
description = "Enable EBS Optimized"
default = "false"
}
variable "monitoring" {
type = bool
description = "If true, the launched EC2 instance will have detailed monitoring enabled"
default = false
}
variable "user_data" {
type = string
description = "The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead."
default = null
}
variable "user_data_base64" {
type = string
description = "Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption."
default = null
}
variable "vpc_id" {
type = string
description = "VPC ID"
}
variable "subnet_id" {
type = string
description = "Subnet ID"
}
variable "associate_public_ip_address" {
type = bool
description = "Associate a public IP address with the instance"
default = false
}
variable "key_pair_name" {
type = string
description = "Key Pair Name"
}
variable "tags" {
type = map(string)
description = "Tags"
default = {}
}
variable "tag_approved_ami_value" {
type = string
description = "Set the specific tag ApprovedAMI ('true' | 'false') that identifies aws-config compliant AMIs"
default = "false"
}
variable "root_device_backup_tag" {
type = string
description = "EC2 Root Block Device backup tag"
default = "True"
}
variable "root_block_device" {
type = list(map(string))
description = "Customize details about the root block device of the instance. See Block Devices below for details"
default = []
}
variable "ebs_block_device" {
type = list(map(string))
description = "Additional EBS block devices to attach to the instance"
default = []
}
variable "ephemeral_block_device" {
type = list(map(string))
description = "Customize Ephemeral (also known as Instance Store) volumes on the instance"
default = []
}
variable "policy_arn" {
type = list(string)
description = "Attach AWS IAM managed policies to the IAM Role."
default = []
}
variable "cross_account_roles_resource_arn_list" {
type = list(string)
description = "Resources arn list for cross org roles for EC2 profile IAM Role policy."
default = []
}
variable "security_group_rules" {
type = list(any)
description = "A list of security group rules"
default = []
}
variable "security_group_ids" {
type = list(string)
description = "A list of security group ids"
default = []
}
variable "dns_records_internal_hosted_zone" {
type = list(any)
description = "A list of DNS private (internal hosted zone) records to create with the instance's IP"
default = []
}
variable "dns_records_public_hosted_zone" {
type = list(any)
description = "A list of DNS public (public hosted zone) records to create with the instance's IP"
default = []
}
variable "credit_specification_cpu" {
type = string
description = "Can be applied/modified to the EC2 at any time. The credit option for CPU usage. Can be 'standard' or 'unlimited'. By default T3 = unlimited & T2 'standard'."
default = "unlimited"
}
variable "disable_api_termination" {
type = string
description = "If true, enables EC2 Instance Termination Protection"
default = "false"
}
variable "enable_ssm_access" {
type = bool
description = "If true, attaches SSM policy to instance role"
default = false
}