Skip to content

Commit

Permalink
truncate workspace name to 64 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ngnnpgn committed Sep 30, 2024
1 parent 731b991 commit 1d6cfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ locals {
# If your backend is not Terraform Cloud, the value is ${terraform.workspace}
# otherwise the value retrieved is that of the TFC_WORKSPACE_NAME with trimprefix
workspace = var.TFC_WORKSPACE_NAME != "" ? trimprefix("${var.TFC_WORKSPACE_NAME}", "mtchoun-mouh-") : "${terraform.workspace}"

workspace = substr("${terraform.workspace}", 0, 64)
}

resource "local_file" "index_page" {
Expand Down

0 comments on commit 1d6cfcb

Please sign in to comment.