python-terraform
python-terraform copied to clipboard
state
i had some thoughts/concerns about the state object. initially, i was confused. i didn't understand why there was a state object, whose internal dict was replaced with the parsed json....
On Python 3.2+ Popen should be used as context manager, otherwise very obscure errors happen on Windows with multiple invocations of Popen. From https://docs.python.org/3/library/subprocess.html: ``` with Popen(["ifconfig"], stdout=PIPE) as proc:...
Currently, on Linux, pressing `Ctrl-C` while `terraform` subprocess is running, causes my python app to stop, a shell prompt to appear, and spurious output from `terraform` (which sometimes takes a...
Refer to https://github.com/beelit94/python-terraform/pull/24 Dev with different terraform version should be able to pass tests without issue.
For, capture_output raise_on_error synchronous options they're trying to manipulate subprocess results and instance itself, we should figure out a more low level method to handle this in a flexible way...
when running `pip install python-terraform` on pip 22 I get: ``` DEPRECATION: python-terraform is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and...
Hello, The older terraform version destroy had -force parameter, whereas the newer one has "-auto-approve" Code: `return_code, stdout, stderr = tf.destroy(auto_approve=True)` Output: ``` Error: Failed to parse command-line flags flag...
I am trying to utilize the python-terraform to create an AWS resource. I was trying to create SQS with it, and for it, I have provided the provider as "aws"...
I spent a couple hours helping a colleague debug why his `python_terraform` code was unexpectedly throwing `FileNotFoundError`s. It finally boiled down to the terraform binary not being on Path. Windows...