Skip to content

Commit 6126606

Browse files
authored
Updates local output file to have normal file permissions - not 777 (#61)
1 parent 622e383 commit 6126606

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ data "template_file" "terraform_backend_config" {
248248
}
249249

250250
resource "local_file" "terraform_backend_config" {
251-
count = var.terraform_backend_config_file_path != "" ? 1 : 0
252-
content = data.template_file.terraform_backend_config.rendered
253-
filename = local.terraform_backend_config_file
251+
count = var.terraform_backend_config_file_path != "" ? 1 : 0
252+
content = data.template_file.terraform_backend_config.rendered
253+
filename = local.terraform_backend_config_file
254+
file_permission = "0644"
254255
}

0 commit comments

Comments
 (0)