The Terraform Writer tool from CodePal allows users to generate Terraform modules based on detailed infrastructure descriptions. Users should provide specific details about cloud providers, resource specifications, and dependencies to create modules for various services like AWS EC2 instances, Azure Virtual Networks, and Google Cloud Storage buckets. Clear guidelines are provided on what to include and avoid in the descriptions to ensure effective module generation.
Get unlimited access to all CodePal tools and products. Claim Your 14-Day Free Trial!
How to use Terraform Writer?
Expected Input: A detailed description of the infrastructure you want to provision using Terraform.
Generated Output: A Terraform module that provisions the described infrastructure.
Provide a clear and specific description of the infrastructure to be provisioned.
Write a Terraform module that provisions an AWS EC2 instance with the following specifications: t2.micro instance type, running Ubuntu 20.04, in the us-west-2 region, with an attached security group allowing SSH and HTTP access.
DO THIS
DON'T DO THIS
Write a Terraform module that provisions an EC2 instance.
Include relevant details such as cloud provider, resource specifications, and any dependencies.
Write a Terraform module that provisions an Azure Virtual Network with two subnets: one public and one private. The public subnet should have a Network Security Group that allows HTTP and HTTPS traffic.
DO THIS
DON'T DO THIS
Write a Terraform module that provisions an Azure Virtual Network.
Ensure your description is detailed enough to cover all aspects of the infrastructure.
Write a Terraform module that provisions a Google Cloud Storage bucket with versioning enabled, lifecycle rules to delete objects after 30 days, and public access restricted to specific IP ranges.
DO THIS
DON'T DO THIS
Write a Terraform module that provisions a storage bucket.