This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
variables.tf
125 lines (105 loc) · 3.92 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
variable "name" {
description = "(Optional) A name for the application (e.g. mlflow)."
type = string
default = "mlflow"
}
variable "environment" {
description = "(Optional) Environment. It will be part of the application name and a tag in AWS Tags."
type = string
default = "dev"
}
variable "aws_profile" {
description = "(Optional) AWS profile to use. If not specified, the default profile will be used."
type = string
default = "default"
}
variable "aws_region" {
description = "(Optional) AWS Region."
type = string
default = "us-east-1"
}
variable "tags" {
type = map(string)
description = "(Optional) AWS Tags common to all the resources created."
default = {}
}
variable "vpc_id" {
type = string
description = "(Optional) VPC ID."
default = null
}
variable "vpc_security_group_ids" {
type = list(string)
description = "(Optional) Security group IDs to allow access to the VPC. It will be used only if vpc_id is set."
default = null
}
variable "service_cpu" {
type = number
default = 1024
description = "The number of CPU units reserved for the MLflow container."
}
variable "service_memory" {
type = number
default = 2048
description = "The amount (in MiB) of memory reserved for the MLflow container."
}
variable "mlflow_username" {
description = "Username used in basic authentication provided by nginx."
type = string
default = "mlflow"
}
variable "mlflow_password" {
description = "Password used in basic authentication provided by nginx. If not specified, this module will create a strong password for you."
type = string
default = null
}
variable "mlflow_version" {
description = "The mlflow-server version to use. See github.com/DougTrajano/mlflow-server for the available versions."
type = string
default = "latest"
}
variable "artifact_bucket_id" {
type = string
default = null
description = "If specified, MLflow will use this bucket to store artifacts. Otherwise, this module will create a dedicated bucket. When overriding this value, you need to enable the task role to access the root you specified."
}
variable "db_skip_final_snapshot" {
type = bool
default = false
description = "(Optional) If true, this module will not create a final snapshot of the database before terminating."
}
variable "db_deletion_protection" {
type = bool
default = true
description = "(Optional) If true, this module will not delete the database after terminating."
}
variable "db_instance_class" {
type = string
default = "db.t2.micro"
description = "(Optional) The instance type of the RDS instance."
}
variable "db_subnet_ids" {
type = list(string)
default = null
description = "List of subnets where the RDS database will be deployed"
}
variable "db_auto_pause" {
type = bool
default = true
description = "If true, the Aurora Serverless cluster will be paused after a given amount of time with no activity. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.pause-resume"
}
variable "db_auto_pause_seconds" {
type = number
default = 1800
description = "The number of seconds to wait before automatically pausing the Aurora Serverless cluster. This is only used if rds_auto_pause is true."
}
variable "db_min_capacity" {
type = number
default = 2
description = "The minimum capacity for the Aurora Serverless cluster. Aurora will scale automatically in this range. See: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html"
}
variable "db_max_capacity" {
type = number
default = 64
description = "The maximum capacity for the Aurora Serverless cluster. Aurora will scale automatically in this range. See: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html"
}