Help Center← Back to Dashboard
Getting Started
What is Aithroyz?Quickstart: First EnvironmentCloud CredentialsPlans & Approvals
Environments
OverviewLifecycle PhasesTTL Auto-DestroyExtending TTLDestroying an Environment
Tools Reference
OverviewElastic Stack (SIEM)Wazuh (XDR)MITRE CalderaTheHive & DFIR-IRISVelociraptorOpenCTIGrafana + PrometheusShuffle SOARn8nUptime KumaLLM GatewayOpen WebUIFlowiseOpenClawOllamaQdrantLangfusePortainerGiteaSonarQubeCode ServerMattermostMinIOMetabaseHashiCorp VaultKeycloak SSONetBoxLocalStack
Access & Security
Google SSOTenant IsolationPasskeys & MFATeam Members
API & Integrations
API KeysMCP Tools (Clevername)Terraform ExportWebhooks & Callbacks
Stack Presets
SOC PlatformIR / DFIR LabThreat HuntingQuick Sandbox
Settings
Cloud KeysAPI KeysBillingAudit Log
Troubleshooting
Common IssuesDeployment FailuresDNS & ConnectivityTool Health Checks
Aithroyz Help
Help CenterAPI & IntegrationsTerraform Export

Terraform Export

Export any deployed environment as Terraform/OpenTofu HCL. Use it to self-host the same infrastructure outside of Aithroyz, reproduce deployments, or customize the modules.

The export includes the root module, all selected tool submodules, variable values (with secrets replaced by placeholder variables), and a README with apply instructions.

How to export

1
Open the plan detail page
Go to Environments → click your environment → click the plan link.
2
Click Export Terraform
The export button is at the top of the plan detail page. It generates the archive from the current state.
3
Download the zip
A zip file is downloaded containing the full module set. Extract it to a local directory.
4
Fill in secret variables
Open vars.tfvars and replace placeholder values (marked with <REPLACE_ME>) with your actual credentials and passwords.
5
Apply
Run terraform init && terraform apply -var-file=vars.tfvars. The infrastructure is identical to what Aithroyz deployed.
# After extracting the export:
cd my-environment-export/

# Initialize providers
terraform init

# Review what will be created
terraform plan -var-file=vars.tfvars

# Apply
terraform apply -var-file=vars.tfvars
ℹ
The exported modules are the same ones used by the Aithroyz provisioner — they are open and auditable. You can inspect every resource, customize variables, and modify the modules to suit your needs.
Related Articles
API KeysRead article →Environments OverviewRead article →