Skip to content

AjiArya/python-tfgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-tfgen

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

Docs

Guide

  1. Copy example/sample.yaml
cp example/sample.yaml myfile.yaml
  1. Edit your file
editor myfile.yaml
  1. Generate terraform HCL
./python-tfgen.py -f myfile.yaml -o resultdir
  1. Initialize directory
cd resultdir/
terraform init
  1. Provision libvirt resources
terraform apply -auto-approve
  1. Deleting libvirt resources
terraform destroy -auto-approve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published