At the moment we are using prints and python-terraform's streamed output to stdout/stderr.
Note python-terraform works in two different modes:
Capturing all the output from Terraform in a single variable - bad idea since the deployment takes several minutes (around 5-8 mins) and the user will see nothing while this is happening.
Streaming the output as sent by Terraform - the way we have it now. We need to figure out how to redirect this to something we can parse into a deployment status the front end can use to inform the user on progress.
In case of error when streaming, python-terraform doesn't save the error message sent by Terraform, making it impossible to tell the user why a deployment failed.
At the moment we are using prints and python-terraform's streamed output to stdout/stderr.
Note python-terraform works in two different modes:
In case of error when streaming, python-terraform doesn't save the error message sent by Terraform, making it impossible to tell the user why a deployment failed.