TotalApp Docs

Infrastructure as Code

Write, validate, and preview Terraform and YAML infrastructure definitions inside TotalApp.

Overview

The Infrastructure as Code screen provides a code editor with syntax highlighting for Terraform HCL, Kubernetes YAML, and Docker Compose. Write your IaC definitions, validate them instantly, preview what will change, and export the files to apply in your own infrastructure pipeline.

Read & Design Only

This screen does not apply changes to real infrastructure. It is a writing, validation, and planning aid. All apply operations must be performed through your actual Terraform or kubectl CLI outside of TotalApp.

Supported Formats

FormatExtensionValidationPlan Preview
Terraform HCL.tfSyntax + provider block checksResource create/update/destroy summary
Kubernetes YAML.yaml / .ymlSchema validation against K8s API specsObject diff vs blank state
Docker Composedocker-compose.ymlVersion & service key checksService count and port mappings

Writing IaC

Select a format from the toolbar dropdown. The editor switches its syntax highlighting and autocomplete accordingly. The editor provides keyword and block highlighting, bracket and indentation matching, inline error markers, and autocomplete for common Terraform resource types and Kubernetes object kinds.

Start from a Template

Open the Templates panel on the left to load a pre-built starting point. Select a template, click Load, then modify it for your environment instead of starting from scratch.

Validation & Plan Preview

Click Validate to run a syntax and schema check. Errors appear as inline markers and in the Problems panel below the editor. Once validation passes, click Plan to see a summary of what the configuration would create, update, or destroy — no real infrastructure is touched.

Write Config
Validate
Plan Preview
Export & Apply

Template Library

The Templates panel provides ready-to-use starting points:

  • Terraform: AWS EC2 instance, S3 bucket, RDS database, VPC with subnets
  • Kubernetes: Deployment + Service, ConfigMap, Ingress, StatefulSet for databases
  • Docker Compose: Single service, multi-service with database, with reverse proxy

Export

Click Export to download the current editor content as a file with the appropriate extension (.tf, .yaml, docker-compose.yml). Use it directly with terraform apply, kubectl apply, or docker compose up in your terminal.

Frequently Asked Questions

Can TotalApp apply Terraform plans to real cloud providers?
No. TotalApp does not store cloud credentials or execute terraform apply. The plan preview is a local analysis of the HCL structure. Use the exported .tf files with your own Terraform installation and cloud credentials.
Which Terraform providers are supported for autocomplete?
Autocomplete covers the most common providers: AWS, GCP, Azure, and Kubernetes. Other providers are syntax-highlighted but do not have resource-type autocomplete. All valid HCL is accepted by the validator regardless of provider.
Can I have multiple files open at once?
The current version supports one file at a time in the editor. Export each file before switching to the next template or clearing the editor for a new file.