Convert your YAML to Terraform HCL
usage: tfgen.py [-h] -f YAML -o OUTPUT
Convert your YAML to Terraform HCL.
optional arguments:
-h, --help show this help message and exit
-f YAML yaml file
-o OUTPUT Output directory- Copy example/sample.yaml
cp example/sample.yaml myfile.yaml- Edit your file
editor myfile.yaml- Generate terraform HCL
./python-tfgen.py -f myfile.yaml -o resultdir- Initialize directory
cd resultdir/
terraform init- Provision libvirt resources
terraform apply -auto-approve- Deleting libvirt resources
terraform destroy -auto-approve