CrftInfraAI

Terraform Generation

Generate Terraform with AI

Start from an infrastructure template or describe your workload, then review, copy, and download Terraform to adapt for your environment.

Describe your infrastructure

Specify your cloud provider, services, and workload requirements in the custom-description workflow.

Open the AI generator

AWS example: EKS, RDS and Argo CD

Open the reusable AWS template and inspect its Terraform output and available README.

Explore the EKS template

Two ways to start your Terraform configuration

Use a template when an existing architecture is close to your needs. Use a written description when you want to specify a different combination of services or workload requirements.

Explore a reusable template

Choose from the template selector, load its Terraform, and inspect the resources and inputs. Templates give you a defined starting configuration that you can download and adapt.

Generate from a description

Describe the infrastructure you need in plain language. The AI generator returns Terraform based on those requirements. Review the result against your intended architecture before using it.

Worked example

Explore EKS, PostgreSQL and Argo CD on AWS

The EKS example opens a template for a Kubernetes application platform with a relational database and Argo CD. Use it to understand the infrastructure configuration before choosing your own sizing and network settings.

Amazon EKS

A private Kubernetes API endpoint and a managed node group for application workloads.

Amazon RDS

A private PostgreSQL database with encrypted storage and access restricted to the EKS nodes.

Argo CD

A Helm release in the argocd namespace to provide a starting point for GitOps delivery.

VPC and networking

Public and private subnets across availability zones, with NAT gateways for outbound access.

Before using this template, choose your region, subnet ranges, node sizing, database sizing, and compatible service versions. Its private EKS endpoint requires a deployment environment with network access to the VPC. Review the template README for prerequisites and configuration details.

From requirements to downloadable Terraform

  1. 01

    Choose a starting point

    Select an infrastructure template or describe a workload in the AI generator.

  2. 02

    Generate Terraform

    Load the selected template or submit your description to generate configuration.

  3. 03

    Inspect the output

    Review the Terraform preview, including resources, variables, networking, and outputs.

  4. 04

    Copy or download

    Copy the configuration or download generated-infra.tf to adapt in your own project.

When a template includes documentation, you can also preview and download its README. Keep the configuration in your repository so your team can review and adapt it through its usual change process.

What to include in your infrastructure description

Describe the cloud provider and region, the application environment, the services you need, and how they should connect. Include sizing, scaling, and public or private access requirements when you know them.

Example requirements to adapt
Create Terraform for an AWS staging application in us-east-1 using ECS Fargate behind an Application Load Balancer. Run application tasks in private subnets and connect them to a private PostgreSQL RDS database. Make the container image, task CPU and memory, desired task count, and database size configurable. Include CloudWatch logging and output the load balancer DNS name.

Paste an adapted description into the generator. This is an example input; the generated resources and configuration still need to be checked against your requirements. Reference credentials through your deployment workflow rather than including secret values in the description.

Review the configuration before deployment

The output is a starting point for an infrastructure change. Review the generated resources, provider settings, variables, network exposure, access permissions, and ongoing service costs in the context of your environment.

Validate the configuration and inspect a Terraform plan in your own deployment workflow. For the EKS example, include NAT gateways, Kubernetes capacity, and database capacity in your cost review. Adapt state storage, secret handling, backups, and operational controls to your team's requirements.

AI Terraform generator FAQ

Does every template use AI?

Available templates load reusable Terraform directly. Custom descriptions use AI generation. If a selected template is unavailable, the workflow can try AI generation from its configured description, subject to access.

Which templates can I explore?

The current selection includes AWS EKS with RDS and Argo CD, GCP GKE with Cloud SQL and Argo CD, Azure AKS with PostgreSQL and monitoring, and smaller container, serverless, and development examples. Inspect the selected template for its exact scope.

Can I edit the Terraform?

Yes. Copy the output or download the .tf file, then edit it in your own editor or repository. Supply the variables and configuration required for your environment.

Does generating Terraform deploy infrastructure?

Generation returns configuration for review and download. Deployment is a separate step that you carry out with your own cloud access and Terraform workflow.

What access does the AI generator require?

Template selection is available without the Pro feature gate. The custom-description generator is a Pro feature, with access also affected by any free access currently enabled. Open the tool or review pricing for the available account options.

Is a README included?

When the selected template provides a README, it appears below the Terraform output and can be downloaded separately. A README is not guaranteed for custom AI-generated output.

Start with a template or your own requirements

Explore the EKS example or open the generator to turn your infrastructure requirements into Terraform for review.