Skip to content

Commit

Permalink
Merge pull request #975 from AlexsLemonade/avrohom/add-tf-log-to-popen
Browse files Browse the repository at this point in the history
Update popen command with TF_LOG envar
  • Loading branch information
avrohomgottlieb authored Nov 22, 2024
2 parents 01d28a0 + e1929ce commit d52df33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infrastructure/init_terraform.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import signal
import subprocess

Expand All @@ -22,7 +23,7 @@ def init_terraform(env, user):
"-backend-config=dynamodb_table=scpca-portal-terraform-lock",
"-force-copy",
]
terraform_process = subprocess.Popen(command)
terraform_process = subprocess.Popen(command, env=dict(os.environ, TF_LOG="TRACE"))
terraform_process.wait()
except KeyboardInterrupt:
terraform_process.send_signal(signal.SIGINT)
Expand Down

0 comments on commit d52df33

Please sign in to comment.