@@ -119,7 +119,7 @@ resource "file_local" "write_tmp_inputs" {
119119 directory = local. tf_data_dir
120120 name = " inputs.tmp"
121121 contents = local. inputs
122- permissions = " 0755 "
122+ permissions = " 0600 "
123123}
124124resource "file_local_snapshot" "persist_inputs" {
125125 depends_on = [
@@ -140,9 +140,10 @@ resource "file_local" "instantiate_inputs_snapshot" {
140140 file_local . write_tmp_inputs ,
141141 file_local_snapshot . persist_inputs ,
142142 ]
143- directory = local. deploy_path
144- name = " inputs.tfvars"
145- contents = base64decode (file_local_snapshot. persist_inputs . snapshot )
143+ directory = local. deploy_path
144+ name = " inputs.tfvars"
145+ contents = base64decode (file_local_snapshot. persist_inputs . snapshot )
146+ permissions = " 0600"
146147}
147148
148149# ## Environment Variables ###
@@ -155,7 +156,7 @@ resource "file_local" "write_tmp_env" {
155156 directory = local. tf_data_dir
156157 name = " env.tmp"
157158 contents = local. export_contents
158- permissions = " 0644 "
159+ permissions = " 0600 "
159160}
160161resource "file_local_snapshot" "persist_envrc" {
161162 depends_on = [
@@ -179,7 +180,7 @@ resource "file_local" "instantiate_envrc_snapshot" {
179180 directory = local. deploy_path
180181 name = " envrc"
181182 contents = base64decode (file_local_snapshot. persist_envrc . snapshot )
182- permissions = " 0644 "
183+ permissions = " 0600 "
183184}
184185
185186# # Generated Files ##
@@ -236,8 +237,8 @@ resource "terraform_data" "destroy" {
236237 when = destroy
237238 # no changing the directory or this won't work on different machines!
238239 command = <<- EOT
239- # if the original filesystem is wiped out, the destroy script may not exist on a consequetive apply (not the first apply)
240- # in which case we need the generate_destroy resoruce to regenerate the destroy script, and the destroy_end resource will hande the destroy.
240+ # if the original filesystem is wiped out, the destroy script may not exist on a consecutive apply (not the first apply)
241+ # in which case we need the generate_destroy resource to regenerate the destroy script, and the destroy_end resource will handle the destroy.
241242 if [ -f ${ self . triggers_replace . dp } /destroy.sh ]; then
242243 ${ self . triggers_replace . dp } /destroy.sh
243244 fi
0 commit comments