-
Notifications
You must be signed in to change notification settings - Fork 51
/
locals.tf
24 lines (21 loc) · 917 Bytes
/
locals.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
module "metaflow-common" {
source = "./modules/common"
}
locals {
resource_prefix = length(var.resource_prefix) > 0 ? "${var.resource_prefix}-" : ""
resource_suffix = length(var.resource_suffix) > 0 ? "-${var.resource_suffix}" : ""
aws_region = data.aws_region.current.name
aws_account_id = data.aws_caller_identity.current.account_id
batch_s3_task_role_name = "${local.resource_prefix}batch_s3_task_role${local.resource_suffix}"
metaflow_batch_image_name = "${local.resource_prefix}batch${local.resource_suffix}"
metadata_service_container_image = (
var.metadata_service_container_image == "" ?
module.metaflow-common.default_metadata_service_container_image :
var.metadata_service_container_image
)
ui_static_container_image = (
var.ui_static_container_image == "" ?
module.metaflow-common.default_ui_static_container_image :
var.ui_static_container_image
)
}