Skip to content

Commit e2f5f87

Browse files
committed
Removed interpolated var
1 parent 4a25868 commit e2f5f87

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ override.tf.json
2727

2828
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
2929
# example: *tfplan*
30+
.terraform.lock.hcl

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resource "aws_s3_bucket_object" "this" {
2-
for_each = fileset("${var.file_path}", "**")
2+
for_each = fileset(var.file_path, "**")
33

4-
content_type = lookup(jsondecode(file("src/mime.json")), regex("\\.[^.]+$", each.value), null)
4+
content_type = lookup(jsondecode(file("${path.module}/src/mime.json")), regex("\\.[^.]+$", each.value), null)
55
acl = var.acl
66
bucket = var.bucket_id
77
storage_class = var.storage_class

0 commit comments

Comments
 (0)