Sign inSign up

gherynos/vault-backend

By gherynos

•Updated 6 months ago

A Terraform HTTP backend that stores the state in a Vault secret.

Image
0

2.6K

gherynos/vault-backend repository overview

A Terraform HTTP backend⁠ that stores the state in a Vault secret⁠.

The server supports locking and leverages the versioning capabilities of Vault by creating a new secret version when creating/updating the state.

Example execution command:

docker run -d -p 8080:8080 -e VAULT_URL=https://some.vault.address:8200 gherynos/vault-backend

Example Terraform configuration:

terraform {
  backend "http" {
    address = "http://localhost:8080/state/<STATE_NAME>"
    lock_address = "http://localhost:8080/state/<STATE_NAME>"
    unlock_address = "http://localhost:8080/state/<STATE_NAME>"

    username = "<VAULT_ROLE_ID>"
    password = "<VAULT_SECRET_ID>"
  }
}

Please refer to the Codeberg repository⁠ for more configuration options and documentation.

Tag summary

Content type

Image

Digest

sha256:3dde8a3e1…

Size

7 MB

Last updated

6 months ago

docker pull gherynos/vault-backend