Skip to content

Commit 166a39b

Browse files
shanewxythxCode
authored andcommitted
fix: instance creation fails due to name exceeding limits
1 parent 33de9a2 commit 166a39b

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
database = coalesce(var.database, "mydb")
140140
username = coalesce(var.username, "rdsuser")

0 commit comments

Comments
 (0)