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