Skip to content

Releases: Prodesire/py-libterraform

v0.8.0

17 Jul 03:02
Compare
Choose a tag to compare
  • Update terraform to 1.8.4
  • TerraformCommand providers_lock supports enable_plugin_cache
  • Makefile supports make format

v0.7.0

03 Jul 02:07
Compare
Choose a tag to compare
  • 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

02 Jul 11:54
4b9eae5
Compare
Choose a tag to compare
  • Update terraform to 1.5.7

v0.5.0

14 Sep 08:28
532a4ea
Compare
Choose a tag to compare
  • fmt supports multi dirs
  • force_unlock removes allow_missing_config
  • only python 3.7 and above are supported

v0.4.0

20 Jun 13:14
Compare
Choose a tag to compare
  • Update TF to 1.2.2
  • plan supports multi replace and target
  • refresh supports parallelism

v0.3.1

19 Apr 12:16
Compare
Choose a tag to compare

Fix memory leak.

v0.3.0

06 Apr 14:21
Compare
Choose a tag to compare

TerraformCommand supports all Terraform commands.
Compared with v0.2.1, the current version supports the following commands:

  • fmt
  • force unlock (The corresponding function is force_unlock)
  • graph
  • import (The corresponding function is import_resource)
  • refresh
  • state and all sub commands of state
  • taint
  • untaint
  • test
  • workspace and all sub commands of workspace

The project adds Makefile so we can use make command, like make init, make test, make build etc.

v0.2.1

31 Mar 02:18
Compare
Choose a tag to compare

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:

  • retcode indicates the command return code. A value of 0 or 2 is normal, otherwise is abnormal.
  • value represents command output. If json=True is specified when executing the command, the output will be loaded
    as json.
  • json indicates whether to load the output as json.
  • error indicates command error output.

v0.1.0

11 Mar 02:36
Compare
Choose a tag to compare

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.