-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
47 lines (39 loc) · 933 Bytes
/
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
variable "server_count" {
type = number
default = 1
description = "The total number of VMs to create"
}
variable "name" {
type = string
description = "The name to assign to resources in this module"
default = "jenkins"
}
variable "environment" {
type = string
description = "The environment to assign to resource in this module"
default = "windows"
}
variable "tags" {
type = map(any)
default = {}
description = "Tags to asscociate to taggable resources in this module"
}
variable "instance_type" {
type = string
default = "t3.small"
}
variable "root_volume_size" {
type = string
default = 50
}
variable "production" {
type = bool
default = false
}
locals {
host = { for i in range(var.server_count) : join("-", [var.name, var.environment, i]) => {
index = i
name = "${join("-", [var.name, var.environment, i])}"
}
}
}