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:
fmt
force unlock
(The corresponding function isforce_unlock
)graph
import
(The corresponding function isimport_resource
)refresh
state
and all sub commands ofstate
taint
untaint
test
workspace
and 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:
retcode
indicates the command return code. A value of 0 or 2 is normal, otherwise is abnormal.value
represents command output. Ifjson=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
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.