forked from outerbounds/terraform-aws-metaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
143 lines (118 loc) · 3.98 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
variable "access_list_cidr_blocks" {
type = list(string)
description = "List of CIDRs we want to grant access to our Metaflow Metadata Service. Usually this is our VPN's CIDR blocks."
default = []
}
variable "api_basic_auth" {
type = bool
default = true
description = "Enable basic auth for API Gateway? (requires key export)"
}
variable "batch_type" {
type = string
description = "AWS Batch Compute Type ('ec2', 'fargate')"
default = "ec2"
}
variable "enable_custom_batch_container_registry" {
type = bool
default = false
description = "Provisions infrastructure for custom Amazon ECR container registry if enabled"
}
variable "enable_step_functions" {
type = bool
description = "Provisions infrastructure for step functions if enabled"
}
variable "resource_prefix" {
default = "metaflow"
description = "string prefix for all resources"
}
variable "resource_suffix" {
default = ""
description = "string suffix for all resources"
}
variable "compute_environment_desired_vcpus" {
type = number
description = "Desired Starting VCPUs for Batch Compute Environment [0-16] for EC2 Batch Compute Environment (ignored for Fargate)"
default = 8
}
variable "compute_environment_instance_types" {
type = list(string)
description = "The instance types for the compute environment"
default = ["c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge"]
}
variable "compute_environment_min_vcpus" {
type = number
description = "Minimum VCPUs for Batch Compute Environment [0-16] for EC2 Batch Compute Environment (ignored for Fargate)"
default = 8
}
variable "compute_environment_max_vcpus" {
type = number
description = "Maximum VCPUs for Batch Compute Environment [16-96]"
default = 64
}
variable "compute_environment_egress_cidr_blocks" {
type = list(string)
default = ["0.0.0.0/0"]
description = "CIDR blocks to which egress is allowed from the Batch Compute environment's security group"
}
variable "iam_partition" {
type = string
default = "aws"
description = "IAM Partition (Select aws-us-gov for AWS GovCloud, otherwise leave as is)"
}
variable "metadata_service_container_image" {
type = string
default = ""
description = "Container image for metadata service"
}
variable "ui_static_container_image" {
type = string
default = ""
description = "Container image for the UI frontend app"
}
variable "tags" {
description = "aws tags"
type = map(string)
}
variable "ui_alb_internal" {
type = bool
description = "Defines whether the ALB for the UI is internal"
default = false
}
# variables from infra project that defines the VPC we will deploy to
variable "subnet1_id" {
type = string
description = "First subnet used for availability zone redundancy"
}
variable "subnet2_id" {
type = string
description = "Second subnet used for availability zone redundancy"
}
variable "vpc_cidr_blocks" {
type = list(string)
description = "The VPC CIDR blocks that we'll access list on our Metadata Service API to allow all internal communications"
}
variable "vpc_id" {
type = string
description = "The id of the single VPC we stood up for all Metaflow resources to exist in."
}
variable "ui_certificate_arn" {
type = string
default = ""
description = "SSL certificate for UI. If set to empty string, UI is disabled. "
}
variable "ui_allow_list" {
type = list(string)
default = []
description = "List of CIDRs we want to grant access to our Metaflow UI Service. Usually this is our VPN's CIDR blocks."
}
variable "extra_ui_backend_env_vars" {
type = map(string)
default = {}
description = "Additional environment variables for UI backend container"
}
variable "extra_ui_static_env_vars" {
type = map(string)
default = {}
description = "Additional environment variables for UI static app"
}