-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathvariables.tf
37 lines (33 loc) · 2.04 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
locals {
# Keep these constant after initial "terraform apply"
# You MUST set this to ensure global (Azure-wide) uniqueness of:
# - DB server name
# - storage account name
# Ask Azure about it... :)
#
# org_prefix = "YOUR_ORG_PREFIX"
storage_container_name = "metaflow-storage-container"
metaflow_datastore_sysroot_azure = "${local.storage_container_name}/tf-full-stack-sysroot"
location = "westus"
metaflow_resource_group_name = "rg-metaflow-${terraform.workspace}-${local.location}"
# MUST be globally unique (entire Azure). Would recommend user to add a meaningful prefix.
kubernetes_cluster_name = "aks-${local.org_prefix}-metaflow-${terraform.workspace}"
# This MUST be globally unique (entire Azure). Pick a meaningful and unique value for org_prefix
database_server_name = "psql-${local.org_prefix}-metaflow-${terraform.workspace}"
# This MUST be globally unique (entire Azure). Pick a meaningful and unique value for org_prefix
storage_account_name = "st${local.org_prefix}metaflow${terraform.workspace}"
storage_service_principal_name = "Metaflow storage service principal (${terraform.workspace})"
virtual_network_name = "vnet-${local.org_prefix}-metaflow-${local.location}-${terraform.workspace}"
db_subnet_name = "snet-${local.org_prefix}-metaflow-db-${local.location}-${terraform.workspace}"
k8s_subnet_name = "snet-${local.org_prefix}-metaflow-k8s-${local.location}-${terraform.workspace}"
# Changeable after initial "terraform apply" (e.g. image upgrades, secret rotation)
metadata_service_image = "public.ecr.aws/outerbounds/metaflow_metadata_service:2.3.0"
metaflow_ui_static_service_image = "public.ecr.aws/outerbounds/metaflow_ui:v1.1.4"
metaflow_ui_backend_service_image = "jackieob/metadata-service-cors:rc0_amd64_with_azure"
metaflow_kubernetes_secrets = "metaflow-azure-storage-credentials"
# Forever constants
metaflow_database_server_admin_login = "metaflow"
metaflow_db_name = "metaflow"
metaflow_db_password = "metaflow" # DB is private, accessible only within vnet.
metaflow_db_port = 5432
}