Skip to content

Commit

Permalink
feat(terraform): add name to project by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Aug 3, 2024
1 parent 371594f commit 89bd11f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
locals {
name_format = join("-", [
"{{ cookiecutter.module_name }}",
var.name,
"%s", # resource name
local.workspace_name
]) # use `format(local.name_format, "<name>")` to use this
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
variable "name" {
type = string
description = "Name of the project"
}

variable "workspace" {
type = string
description = "Terraform workspace name"
Expand Down

0 comments on commit 89bd11f

Please sign in to comment.