This is a simple go lang implementation of the terraform http backend protocol including locking. To store the information there is current only the filesystem used.
The http server can be configured over environment variables set in the system or in the .env
file.
Follow Environment are availibe:
Variable | Description | Default |
---|---|---|
TF_STORAGE_DIR |
directory to store the uploaded terraform state file and the lock state | ./store |
TF_AUTH_ENABLED |
boolean to enable or disable basic auth security | false |
TF_USERNAME |
Username for the basic auth security only used if TF_AUTH_ENABLED is true |
admin |
TF_PASSWORD |
Password for the basic auth security only used if TF_AUTH_ENABLED is true |
admin |
TF_PORT |
The Port where this server will listen | 8080 |
TF_IP |
The ip addr for the server to listen. If none is set the server will listen on all interfaces | 127.0.0.1 |
Download latest release config your .env file or set the environment varibles.
Than you can simple start the server with ./terraform_http_backend
I the future there will be a docker image and also a example systemd start script