Terraform Config Generator
Generate Terraform provider, resource, variable and output blocks in your browser.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Generated a Terraform module skeleton with 6 block(s).
How it works
- Declared the aws provider and its required provider source.
- Wrote one variable block per declared input.
- Added a aws_s3_bucket resource that references the variables with var.*.
- Wrote one output block per declared output.
- Review attribute names and types against your provider before applying.
- Run `terraform fmt -check` and `terraform validate` yourself.
Methodology
- Validate the provider, identifiers and version token.
- Emit `terraform.required_providers` and a provider block.
- Emit one variable per declared input, a resource referencing `var.*`, and one output per declared output.
Usage
- Choose a provider and optional version constraint.
- Name the resource type and local name.
- List variables and outputs, then copy the generated main.tf.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
AWS S3 module skeleton
{
"provider": "aws",
"providerVersion": "~> 5.0",
"region": "us-east-1",
"resourceType": "aws_s3_bucket",
"resourceName": "main",
"variables": "region, bucket_name",
"outputs": "bucket_id"
}Limitations
A module skeleton, not a plan
The generator writes the scaffolding you would otherwise type: the required providers block, variables, a resource and outputs. It cannot know your provider's exact arguments, so review them before running `terraform plan`.
Frequently asked questions
- Does the generator embed cloud credentials?
- No. The provider block references `var.region` and the resource references declared variables; credentials belong in your environment or a secret manager.
- Which providers are supported?
- aws, google, azurerm, kubernetes and null; other providers can be edited in by hand.
Sources
- Terraform language documentation — HashiCorp
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.