-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
83 lines (69 loc) · 2.05 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
# ec2 instance
variable "ami" {
description = "The AMI to use for the instance"
default = ""
}
variable "instance_type" {
description = "Specify which instance type to use"
default = "t2.micro"
}
variable "key_name" {
description = "Specify key pair to use for decrypting the login password"
default = ""
}
variable "subnet_id" {
description = "The VPC Subnet ID to launch in"
default = ""
}
variable "vpc_security_group_ids" {
description = "A list of security group IDs to associate with"
default = []
}
variable "user_data" {
type = string
description = "(Optional) The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead."
default = ""
}
variable "iam_instance_profile_name" {
type = string
description = "(Optional, Forces new resource) The profile's name. If omitted, Terraform will assign a random, unique name."
default = ""
}
variable "iam_role_name" {
type = string
description = "(Optional) The role name to include in the profile"
default = ""
}
# https://github.com/hashicorp/terraform/issues/24188
# lifecycle: Support for dynamic blocks and meta-arguments still open
// variable "lifecycle_ignore_changes" {
// default = true
// }
# root volume
variable "root_block_device" {
description = "Customize details about the root block device of the instance. See Block Devices below for details"
type = list(any)
default = null
}
# additional attachment volumes
variable "ebs_volume_data_disks" {
description = "Additional EBS block devices to attach to the instance"
type = map(any)
default = null
}
# tags
variable "tags_instance" {
description = "Tags for the instance/server"
type = map(any)
default = {}
}
variable "tags_root_volume" {
description = "Tags for the root volume"
type = map(any)
default = {}
}
variable "tags_ebs_volume_data_disks" {
description = "Set of tags for all EBS data volumes"
type = map(any)
default = {}
}