Skip to content

Commit

Permalink
Add naming for Synapse (Azure#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
basvdl authored Jun 8, 2022
1 parent 09be0b9 commit f4d6f51
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ postgresql_server = {
| stream\_analytics\_stream\_input\_eventhub | n/a |
| stream\_analytics\_stream\_input\_iothub | n/a |
| subnet | n/a |
| synapse\_workspace | n/a |
| template\_deployment | n/a |
| traffic\_manager\_profile | n/a |
| unique-seed | n/a |
Expand Down
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2136,6 +2136,16 @@ locals {
scope = "parent"
regex = "^[a-zA-Z0-9][a-zA-Z0-9-._]+[a-zA-Z0-9_]$"
}
synapse_workspace = {
name = substr(join("", compact([local.prefix_safe, "syn", local.suffix_safe])), 0, 45)
name_unique = substr(join("", compact([local.prefix_safe, "syn", local.suffix_unique_safe])), 0, 45)
dashes = false
slug = "syn"
min_length = 1
max_length = 45
scope = "global"
regex = "^[a-z0-9]+$"
}
template_deployment = {
name = substr(join("-", compact([local.prefix, "deploy", local.suffix])), 0, 64)
name_unique = substr(join("-", compact([local.prefix, "deploy", local.suffix_unique])), 0, 64)
Expand Down
4 changes: 4 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,10 @@ output "subnet" {
value = local.az.subnet
}

output "synapse_workspace" {
value = local.az.synapse_workspace
}

output "template_deployment" {
value = local.az.template_deployment
}
Expand Down

0 comments on commit f4d6f51

Please sign in to comment.