Releases: Prodesire/py-libterraform
v0.8.0
v0.7.0
- Update terraform to 1.6.6
- TerraformCommand supports
get - Update params of command
init,validate,plan,fmt,providers,providers_lock,providers_mirror,refresh - Incompatible changes: the test command is changed from experimental to official, and the parameters are changed.
- Support Python 3.12
v0.6.0
- Update terraform to 1.5.7
v0.5.0
v0.4.0
- Update TF to 1.2.2
- plan supports multi replace and target
- refresh supports parallelism
v0.3.1
Fix memory leak.
v0.3.0
TerraformCommand supports all Terraform commands.
Compared with v0.2.1, the current version supports the following commands:
fmtforce unlock(The corresponding function isforce_unlock)graphimport(The corresponding function isimport_resource)refreshstateand all sub commands ofstatetaintuntainttestworkspaceand all sub commands ofworkspace
The project adds Makefile so we can use make command, like make init, make test, make build etc.
v0.2.1
Implement TerraformCommand which is used to invoke various Terraform commands.
Currently, supports version and all main commands (init, validate, plan, show, apply and destroy),
returning a CommandResult object. The CommandResult object has the following properties:
retcodeindicates the command return code. A value of 0 or 2 is normal, otherwise is abnormal.valuerepresents command output. Ifjson=Trueis specified when executing the command, the output will be loaded
as json.jsonindicates whether to load the output as json.errorindicates command error output.
v0.1.0
Implement TerraformConfig which is used to parse Terraform config files.
For now, only supply TerraformConfig.load_config_dir method which reads the .tf and .tf.json files in the given directory as config files and then combines these files into a single Module. This method returns (mod, diags) which are both dict, corresponding to the *Module and hcl.Diagnostic structures in Terraform respectively.