Skip to content

Commit be740dd

Browse files
fix: move locals to file (#7)
1 parent 2a9a476 commit be740dd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Compendium.Terraform/module/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ terraform.rc
3838
# Ignore plan files
3939
*.plan
4040
*.tfplan
41+
tfplan
42+
tfplan.json
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
locals {
2+
name = split("@", var.contact)[0]
3+
}

src/Compendium.Terraform/module/main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
locals {
2-
name = split("@", var.contact)[0]
3-
}
4-
51
resource "terraform_data" "contact" {
62
input = var.contact
73
}

0 commit comments

Comments
 (0)