-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
59 lines (49 loc) · 1.25 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
/***
*
* # Variables
*
* Variables used on the `instances` module.
*
*/
# Required variables
# ------------------
# The following variables are required, and if not set, the module will fail.
variable "Network_CIDR" {
description = "The network IP address configuration on CIDR format"
type = string
}
variable "N_Subnets" {
description = "The number of subnets to create"
type = number
validation {
condition = var.N_Subnets >= 2 && var.N_Subnets <= 6
error_message = "The number of subnets must be between 2 and 6"
}
}
variable "Name" {
description = "Base name for the resources"
type = string
}
variable "Manifest_path" {
description = "Path to the Packer resulting manifest.json file"
type = string
}
# Optional variables
# ------------------
# The following variables are optional, and if not set, the default values
# will be used.
variable "Tags" {
description = "Tags to apply to the resources"
type = map(string)
default = {}
}
variable "local_ip" {
description = "Local IP address to allow SSH access"
type = string
default = ""
}
variable "vpc_id" {
description = "VPC ID to deploy the builder instance"
type = string
default = ""
}