Skip to content

Commit

Permalink
Merge pull request #9 from data-platform-hq/storage-account-support-l…
Browse files Browse the repository at this point in the history
…ower

fix: support sa lower names
  • Loading branch information
owlleg6 authored Jun 27, 2024
2 parents b1940ef + cf92b94 commit 5ec2e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ locals {
key_vaults = { for item in var.key_vaults : item => substr(join("-", compact(["kv", var.project, item, substr(var.environment, 0, 1), local.shorthanded_region_names[(var.location)], var.instance_number])), 0, 24) }

# Storage Accounts
storage_account = substr(join("", compact(["st", var.project, substr(var.environment, 0, 1), local.shorthanded_region_names[(var.location)], var.instance_number])), 0, 24)
storage_accounts = { for item in var.storage_accounts : item => substr(join("", compact(["st", var.project, item, substr(var.environment, 0, 1), local.shorthanded_region_names[(var.location)], var.instance_number])), 0, 24) }
storage_account = lower(substr(join("", compact(["st", var.project, substr(var.environment, 0, 1), local.shorthanded_region_names[(var.location)], var.instance_number])), 0, 24))
storage_accounts = { for item in var.storage_accounts : item => lower(substr(join("", compact(["st", var.project, item, substr(var.environment, 0, 1), local.shorthanded_region_names[(var.location)], var.instance_number])), 0, 24)) }

# Databricks Workspace
databricks_workspace = substr(join("-", compact(["dbw", var.project, var.environment, var.location, var.instance_number])), 0, 63)
Expand Down

0 comments on commit 5ec2e39

Please sign in to comment.