locals {

  service_name = "entitlement-management-service"

  container_port = 8079

  env_account = terraform.workspace

  deploy_env_name = lookup(var.workspace_deploy_env, local.env_account)

  spring_config_label = lookup(var.spring_config_label_map, local.env_account)

  subdomain = lookup(var.subdomain_map, local.env_account)

  region = "us-east-1"

  health_check_path = "/actuator/health"

  env = {
    default = {
    }

    nf-sandbox = {
    }

    nf-staging-int = {
    }

    nf-prod-int = {
    }
  }

  environmentvars = contains(keys(local.env), terraform.workspace) ? terraform.workspace : "default"
  workspace       = merge(local.env["default"], local.env[local.environmentvars])
}
