-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
106 lines (87 loc) · 2.56 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
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
variable "use_efs" {
type = bool
default = true
description = "Create EFS resource and use it for InfluxDB's data storage"
}
variable "aws_vpc" {
type = object({ id : string })
description = "VPC to place ECS task and security groups into"
}
variable "aws_subnets" {
type = list(object({ id : string }))
description = "VPC to place ECS task onto"
}
variable "aws_service_discovery_private_dns_namespace" {
type = object({ id : string })
description = "Namespace to register InfluxDB service under"
}
variable "aws_security_group" {
type = object({ id : string })
description = "SG for the ECS task"
}
variable "aws_ecs_cluster" {
type = object({ id : string })
description = "ECS cluster to place InfluxDB task on"
}
variable "task_role" {
type = object({ arn : string })
description = "Role to run ECS InfluxDB task under"
}
variable "execution_role" {
type = object({ arn : string })
description = "Role to start ECS InfluxDB task from"
}
variable "cpu" {
type = number
description = "vCPUs for ECS InfluxDB task"
}
variable "memory" {
type = number
description = "Memory in MB for ECS InfluxDB task"
}
variable "auth_enabled" {
type = bool
default = true
description = "Enables authentication"
}
variable "admin_user" {
type = string
default = "admin"
description = "Username of the InfluxDB admin user"
}
variable "aws_secretsmanager_secret-admin_password" {
type = object({ arn : string })
description = "Password of the InfluxDB admin user stored as Secrets Manager secret"
}
variable "rw_user" {
type = string
default = "rw"
description = "Username of the InfluxDB RW user"
}
variable "aws_secretsmanager_secret-rw_user_password" {
type = object({ arn : string })
description = "Password of the InfluxDB RW user stored as Secrets Manager secret"
}
variable "ro_user" {
type = string
default = "ro"
description = "Username of the InfluxDB RO user"
}
variable "aws_secretsmanager_secret-ro_user_password" {
type = object({ arn : string })
description = "Password of the InfluxDB RO user stored as Secrets Manager secret"
}
variable "name" {
type = string
default = "example"
description = "Name used to build resource names"
}
variable "tags" {
type = map
description = "Tags assigned to every AWS resource"
}
variable "retention_in_days" {
type = number
default = 1
description = "Retention period for the Cloudwatch-based ECS logs"
}