My Terraform code explained by ChatGPT
Why let ChatGPT explain your code?
In a previous post titled ‘Azure Hub-Spoke Deployment with Terraform‘, I created a basic setup for an Azure Hub-Spoke model using Terraform. Explaining this code can be time-consuming, but ChatGPT can help you with that. It’s actually quite good at it! With the additional time you save, you can explore ChatGPT 4.
In this post, it is just a basic request using the OpenAI chat interface. In later posts, I will explain how to automate this.
Pervious post
Get started
- Go to the OpenAI chat interface
- Ask ChatGPT to explain your code (you can skip the small talk, but I like to say “Hi”)
- Paste your code and ChatGPT explains your code for you
- Refine the text as you see fit
- An example README.MD is displayed below and created in a few minutes:
Source
Github
The code that is explained can be found in this repository.