-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
78 lines (62 loc) · 1.75 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
variable "alb_name" {
description = "Name / identifier of the application load balancer"
type = string
validation {
condition = length(var.alb_name) <= 32
error_message = "Name string cannot be longer than 32 characters"
}
}
variable "target_group_name" {
description = "Name / identifier of the app target group"
type = string
validation {
condition = length(var.target_group_name) <= 32
error_message = "Name string cannot be longer than 32 characters"
}
}
variable "default_tags" {
description = "Default resource tags to apply to AWS resources"
type = map(string)
default = {
project = ""
maintainer = ""
documentation = ""
cost_center = ""
IaC_Management = "Terraform"
}
}
variable "alb_subnets" {
description = "Subnets in which to run the load balancer"
type = list(string)
}
variable "health_check_path" {
description = "Path on the target to ping to determine app health"
type = string
default = "/"
}
variable "acm_tls_cert_domain" {
description = "Load balancer TLS certificate domain"
type = string
}
variable "tls_cipher_policy" {
description = "TLS Cipher Policy presets for the ALB"
type = string
default = "ELBSecurityPolicy-TLS13-1-2-2021-06"
}
variable "vpc_id" {
description = "VPC ID"
type = string
}
variable "app_port" {
description = "Application port on the server"
type = number
}
variable "ip_address_type" {
description = "Whether to use IPv4 or IPv6 to reach app servers"
type = string
default = "ipv4"
validation {
condition = contains(["ipv4", "ipv6"], var.ip_address_type)
error_message = "IP address type must be either `ipv4` or `ipv6`"
}
}