ivoronin / tfstated

Lightweight Terraform state server, intended for use with Terraform HTTP backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tfstated

Lightweight Terraform state server, intended for use with Terraform HTTP backend

Docker

A Docker container for tfstated is available from Docker Hub

docker run -d --name tfstated \
  -e TFSTATED_USERNAME=terraform \
  -e TFSTATED_PASSWORD=terraform \
  -e TFSTATED_DATA_DIR=/tfstate \
  -p 8000:8000 -v /data:/tfstate \
  ivoronin/tfstated:latest

Example terraform config

terraform {
  backend "http" {
    address        = "http://127.0.0.1:8000/state"
    lock_address   = "http://127.0.0.1:8000/state"
    unlock_address = "http://127.0.0.1:8000/state"
    username       = "terraform"
    password       = "terraform"
  }
}

About

Lightweight Terraform state server, intended for use with Terraform HTTP backend


Languages

Language:Python 97.2%Language:Dockerfile 2.8%