Tool that converts natural language to Terraform code
- Terraform 1.3.0: https://www.terraform.io/downloads
- Python 3.10.5: https://www.python.org/downloads/
- OpenAI Codex API: http://beta.openai.com/codex-waitlist
- Clone the repo
- cd into the repo
- Run pip install -r requirements.txt (best to install it within a Python venv )
- Run terraform init -backend=false
- Run $env:OPENAI_API_KEY="<YOUR_OPENAI_API_KEY>" (this command may vary depending on the operating system)
- Run streamlit run .\app.py to open the web app locally
- Enter the description of desired resources into the textbox under "Return Terraform code to create..."
- Click on "Terraform it!" button
- The AI generated code will be shown below.
- To validate the generated code, enter the code snippet into the text box below and click on "Validate terraform code"