generated from terraform-module/terraform-module-blueprint
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.tf
97 lines (81 loc) · 2.19 KB
/
vars.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
variable "create" {
description = "Controls if resources should be created (affects nearly all resources)"
type = bool
default = true
}
variable "name" {
description = "Resource names that do not require prefix"
type = string
}
variable "name_prefix" {
description = "The prefix for resource names"
type = string
}
variable "sds" {
description = "Service Discovery Service resource."
type = any
default = {}
}
variable "sg" {
description = "Security group."
type = any
default = {}
}
variable "log_configuration" {
description = "The log configuration for the service."
type = any
default = {}
}
variable "lb" {
description = "The Load Balancer configuration for the service. A health block containing health check settings for the ALB target groups. See https://www.terraform.io/docs/providers/aws/r/lb_target_group.html#health_check for defaults."
type = any
default = {}
validation {
condition = alltrue([
length(var.lb.lb_rules.host_headers) <= 5
])
error_message = "A rule can only have '5' condition values."
}
validation {
condition = alltrue([
for k, v in var.lb.lb_rules.host_headers : v != "" || v != null || v != "*"
])
error_message = "Invalid host header e.g. *, empty or null for service."
}
}
variable "iam" {
description = "IAM actions and resource permissions."
type = any
default = {}
}
variable "tags" {
description = "A mapping of tags to assign to all resources"
type = map(string)
default = {}
}
variable "vpc_id" {
description = "VPC id where to deploy platform."
type = string
}
variable "subnets" {
description = "VPC subnets where service to deploy to."
type = list(string)
}
variable "cluster_id" {
description = "ECS Cluster ARN."
type = string
}
variable "cluster_name" {
description = "ECS Cluster name."
type = string
}
variable "service" {
description = "Managed service to create."
type = any
default = {}
}
variable "scaling" {
description = "Provides an Application AutoScaling resource management."
type = any
default = {}
}