python-terraform
python-terraform copied to clipboard
from python_terraform import Terraform, IsFlagged from utils import load_bcms_config conf=load_bcms_config("config.yaml") # code to read yaml file with required values script_dir="/root/examples/compute/instance/" tf = Terraform(working_dir=script_dir, variables=conf) tf.plan() terraform script i am using...
Could be handy, if interested I will submit a PR
Terraform output does not work with v0.12 ret, out, err = self.output_cmd(*args, **kwargs) if ret != 0: return None out = out.lstrip() value = json.loads(out) if name_provided and not full_value:...
There are several breaking changes in TF 0.12 in how the commands return data, expect input, etc, and I would like to drop support for older versions of terraform for...
Readme needs to include enhanced functionality: - Workspaces - Capture Output changes - Deprecation of support for TF prior to 0.12.0 - Any other changes or enhancements pulled in -...
``` tf = Terraform(working_dir='/var/www/html/terraform') tf.plan(no_color=IsFlagged, refresh=False, capture_output=True) ``` after running this script we are getting `Error: Argument or block definition required` Python Version - 3.6.8 Terraform v0.12.10 + provider.aws v2.31.0
after updating from 0.10.0 to 0.10.1 the workspace function is divided to multiple functions but there is no way to list existing workspaces ! Any idea how can we do...
0.12.x changed how `${path.module}` is rendered, and since `python-terraform` isn't explicitly passing a path to the terraform binary, terraform is using the implied value of `.` instead of the full...
Security issue with credentials vars file leftover in /tmp/ folder in case of error. **My environment details:** Provider: OpenStack Terraform Server: 0.11.7 Python_terraform: 0.10.0 **My Source Code:** ``` def terraform_plan(self):...
Using TF 0.11.10. `terraform apply -no-color -input=false -auto-approve=false /tmp/tmpurzm0_cx` When running this apply, terraform ran without prompting the user for `yes`. I suspect it's a change in the way that...