-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
64 lines (57 loc) · 1.18 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
variable "availability_zones" {
description = "Availability zones in this region to use"
default = ["eu-central-1a", "eu-central-1b"]
type = list(string)
}
variable "subnet_cidrs_public" {
default = ["10.0.1.0/24", "10.0.3.0/24"]
type = list(string)
}
variable "enable_blue_env" {
description = "Enable blue environment"
type = bool
default = true
}
variable "blue_instance_count" {
description = "Number of instances in blue environment"
type = number
default = 2
}
variable "enable_green_env" {
description = "Enable green environment"
type = bool
default = true
}
variable "green_instance_count" {
description = "Number of instances in green environment"
type = number
default = 2
}
locals {
traffic_dist_map = {
blue = {
blue = 100
green = 0
}
blue-90 = {
blue = 90
green = 10
}
split = {
blue = 50
green = 50
}
green-90 = {
blue = 10
green = 90
}
green = {
blue = 0
green = 100
}
}
}
variable "traffic_distribution" {
description = "Levels of traffic distribution"
type = string
}