Skip to content

Commit b02238f

Browse files
shanewxythxCode
authored andcommitted
fix: instance creation fails due to name exceeding limits
1 parent 8bcbc8e commit b02238f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ resource "random_string" "name_suffix" {
134134

135135
locals {
136136
name = join("-", [local.resource_name, random_string.name_suffix.result])
137-
fullname = join("-", [local.namespace, local.name])
137+
fullname = format("walrus-%s", md5(join("-", [local.namespace, local.name])))
138138
description = "Created by Walrus catalog, and provisioned by Terraform."
139139
password = coalesce(var.password, random_password.password.result)
140140

0 commit comments

Comments
 (0)