Skip to content

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

Notifications You must be signed in to change notification settings

ivoronin/tfstated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published