Skip to content

Commit

Permalink
fix: workspace name length
Browse files Browse the repository at this point in the history
  • Loading branch information
ngnnpgn committed Sep 30, 2024
1 parent 985c861 commit b5b7eb0
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_name = var.TFC_WORKSPACE_NAME != "" ? trimprefix("${var.TFC_WORKSPACE_NAME}", "mtchoun-mouh-") : "${terraform.workspace}"
workspace = substr(local.workspace_name, 0, 45)
workspace = substr(local.workspace_name, 0, 30)
}

resource "local_file" "index_page" {
Expand Down

0 comments on commit b5b7eb0

Please sign in to comment.