-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariable.tf
123 lines (106 loc) · 2.88 KB
/
variable.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
variable "alb" {
type = object({
http_listener_arn = string
https_listener_arn = string
alb_arn_suffix = string
alb_dns_name = string
alb_zone_id = string
})
default = null
description = "Alb module from ssh://[email protected]/miquido/terraform/terraform-alb.git"
}
variable "ecs_cluster" {
type = object({
arn = string
name = string
})
description = "resource aws_ecs_cluster where to deploy service"
}
variable "service_name" {
type = string
default = "prometheus"
description = "Name under which service will be deployed"
}
variable "vpc" {
type = object({
vpc_main_security_group_id = string
vpc_id = string
private_subnet_ids = list(string)
})
description = "VPC module ssh://[email protected]/miquido/terraform/terraform-vpc.git"
}
variable "domain" {
type = string
description = "domain under which prometheus will be available. Required when alb is used"
default = null
}
variable "ingress_priority" {
type = number
default = 89
description = "The priority for the rules without authentication, between 1 and 50000 (1 being highest priority). Must be different from `authenticated_priority` since a listener can't have multiple rules with the same priority"
}
variable "route53_zone_id" {
type = string
default = null
description = "route id to create prometheus entry"
}
variable "project" {
type = string
description = "Account/Project Name"
}
variable "environment" {
description = "Environment name"
}
variable "aws_region" {
type = string
description = "Default AWS Region"
}
variable "app_mesh_id" {
type = string
default = null
}
variable "aws_service_discovery_private_dns_namespace" {
type = object({
name = string
id = string
hosted_zone = string
})
default = null
}
variable "tags" {
type = map(string)
description = "Default tags to apply on all created resources"
default = {}
}
variable "task_cpu" {
type = number
default = 256
description = "ECS task cpu for prometheus"
}
variable "task_memory" {
type = number
default = 512
description = "ECS task memory for prometheus"
}
variable "enable_app_mesh" {
type = bool
default = true
description = "Should appmesh resources be created. Required vars: aws_service_discovery_private_dns_namespace, aws_appmesh_mesh_id, mesh_route53_zone_id"
}
variable "app_mesh_aws_service_discovery_private_dns_namespace" {
type = object({
name = string
id = string
hosted_zone = string
})
default = null
description = "app mesh private DNS namespace"
}
variable "app_mesh_route53_zone" {
type = object({
id = string
name = string
})
default = null
description = "app_mesh route zone to create service entry"
}