In this blog, I am going to demonstrate how to generate a working Terraform template within a minute by using plain English language conversation with ChatGPT.
I asked chatgpt to create one terraform script to lunch an ec2 instance with the httpd web server user data.
Press enter or click to view image in full size
Here is the response
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Now Let’s Apply the terraform script and see the result
Now Let's hit the public ip
Press enter or click to view image in full size
Here we go. The web server is up and running.
So by using the chatgpt we can make our day-to-day devops activities easy.