2024-05-23 13:26:58 +06:00
|
|
|
locals {
|
|
|
|
common_description = "managed by terraform"
|
|
|
|
freeform_tags = {
|
|
|
|
ManagedBy = "iac/terraform"
|
|
|
|
"iac/source" = var.iac_project_source
|
|
|
|
"iac/component" = var.iac_project_name
|
|
|
|
}
|
2024-05-24 16:17:53 +06:00
|
|
|
# vcn dns label must be only alphanumeric and max 15 chars
|
|
|
|
vcn_dns_label = substr(replace(join("", [var.prefix, "vcn"]), "/(?i)[^0-9a-z]/", ""), 0, 15)
|
2024-05-24 16:18:39 +06:00
|
|
|
compute_ssh_key = coalesce(var.compute_ssh_key, trimspace(tls_private_key.ssh_key[0].public_key_openssh))
|
2024-05-23 13:26:58 +06:00
|
|
|
}
|