{"repo":"beelit94/python-terraform","free":true,"listed":false,"github":"https://github.com/beelit94/python-terraform","clone":"git clone https://github.com/beelit94/python-terraform.git","description":null,"language":"Python","stars":486,"topics":["terraform","python"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Introduction python-terraform is a python module provide a wrapper of terraform command line tool. terraform is a tool made by Hashicorp, please refer to https://terraform.io/ Status Installation pip install python-terraform Usage For any terraform command from python terraform import t = Terraform() return code, stdout, stderr = t. ( arguments, options) Note : method name same as reserved keyword like import won't be accepted by python interpreter, to be able to call the method, you could call cmd name by adding cmd after command name, for example, import here could be called by from python terraform import t = Terraform() return code, stdout, stderr = t.import cmd( arguments, options) or just call cmd method directly from python terraform import t = Terraform() return code, stdout, stderr = t.cmd( , arguments, options) For any argument simply pass the string to arguments of the method, for example, terraform apply target dir -- .apply('target dir') terraform import aws instance.foo i-abcd1234 -- .import('aws instance.foo', 'i-abcd1234') For any options dash to underscore remove first dash, and then use underscore to replace dash symbol as option name ex. -no-color -- no color for a simple flag option use as value for raising/not raising flag, for example, terraform taint -allow-missing -- .taint(allow＿missing=IsFlagged) terraform taint -- .taint(allow＿missing=None) or .taint() terraform apply -no-color -- .apply(no color=IsFlagged) for a boolean value option assign True or ","default_branch":null,"files":null,"tree":[],"storefront":"/r/beelit94","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/beelit94/python-terraform/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}