# Terraform-HTTP-Backend

Terraform-HTTP-Backend is a self-hosted infrastructure app. Terraform-HTTP-Backend lets you self-host a Terraform backend and keep Terraform state files on your own system. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/1997/terraform-http-backend

## Description

Terraform-HTTP-Backend lets you self-host a Terraform backend and keep Terraform state files on your own system. It can also be used to install and configure the Terraform Cloud Operator on Kubernetes, so you can set up both parts within your own environment.

## Platform availability

Available on 2 of 10 platforms: Unraid, Helm.

## Health score

74/100 (Good), based on 4 of 4 factors.
- Maintained: 100 (last commit 10 days ago)
- Popular: 94 (50,207 GitHub stars)
- Easy to install: 45 (2 install platforms, install notes, Docker image)
- Light to run: 10 (8 GB minimum RAM)

## Links

- GitHub: https://github.com/hashicorp/terraform
- Official website: https://www.terraform.io
- Unraid: https://ca.unraid.net/apps/terraform-http-backend-022255s0bki8oc?q=Terraform-HTTP-Backend
- Documentation: https://www.terraform.io/terraform/docs

## Common questions

### How should I supply credentials for the Terraform HTTP backend?

Use environment variables for credentials and other sensitive data. Hardcoding values or passing them with -backend-config can store them in the .terraform directory and plan files.

### How do I change where Terraform stores its state?

Use the backend block to point Terraform at the desired state backend. Terraform documents initializing, changing, and unconfiguring backend settings.

### Does a custom Terraform state server need locking?

Locking support is part of building a custom Terraform state server. It is covered together with authentication and real-world implementation patterns.

### How are Terraform state uploads handled by the OpenWRT HTTP backend package?

Uploads are validated with Content-MD5. Large state files are streamed.

### Do I still need a Terraform runner to use a self-hosted HTTP backend?

Yes, Terraform must be installed on the machine or CI/CD agent that executes Terraform commands. That agent can be a cloud VM or even a laptop.

## Alternatives

- opentofu: OpenTofu is a command-line infrastructure-as-code tool that provides a community-driven drop-in replacement for Terraform.

---
Source: Our Local Host (https://ourlocalhost.com/app/1997/terraform-http-backend), the self-hosted and open-source app directory.
