generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
116 lines (98 loc) · 2.77 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-pritunl"
description = "Terraform current module repo"
validation {
# regex(...) fails if it cannot find a match
condition = can(regex("^https://", var.repository))
error_message = "The module-repo value must be a valid Git repo link."
}
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "public_key" {
type = string
default = ""
description = "The key name to use for the instance."
}
variable "user_data" {
type = string
default = ""
description = "(Optional) A string of the desired User Data for the ec2."
}
variable "ami" {
type = string
default = ""
description = "The AMI to use for the instance."
}
variable "instance_type" {
type = string
description = "The type of instance to start. Updates to this field will trigger a stop/start of the EC2 instance."
}
variable "root_block_device" {
type = list(any)
default = []
description = "Customize details about the root block device of the instance. See Block Devices below for details."
}
variable "ebs_volume_size" {
type = number
default = 30
description = "Size of the EBS volume in gigabytes."
}
variable "ebs_volume_type" {
type = string
default = "gp2"
description = "The type of EBS volume. Can be standard, gp2 or io1."
}
variable "ebs_volume_enabled" {
type = bool
default = false
description = "Flag to control the ebs creation."
}
variable "subnet_ids" {
type = list(string)
default = []
description = "A list of VPC Subnet IDs to launch in."
sensitive = true
}
variable "instance_count" {
type = number
default = 1
description = "Number of instances to launch."
}
variable "iam_instance_profile" {
type = string
default = ""
description = "The IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile."
}
variable "instance_tags" {
type = map(any)
default = {}
description = "Instance tags."
}
variable "vpc_id" {
type = string
default = ""
description = "The ID of the VPC that the instance security group belongs to."
sensitive = true
}
variable "ssh_allowed_ip" {
type = list(any)
default = []
description = "List of allowed ip."
}
variable "ssh_allowed_ports" {
type = list(any)
default = []
description = "List of allowed ingress ports"
}