Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/last9/tfstate
Restful Terraform remote state server
https://github.com/last9/tfstate
state-management terraform terraform-remote tfstate
Last synced: about 2 months ago
JSON representation
Restful Terraform remote state server
- Host: GitHub
- URL: https://github.com/last9/tfstate
- Owner: last9
- Created: 2016-06-15T20:10:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T12:34:43.000Z (over 2 years ago)
- Last Synced: 2023-08-04T14:51:47.134Z (over 1 year ago)
- Topics: state-management, terraform, terraform-remote, tfstate
- Language: Go
- Homepage: http://blog.oogway.in/terraform-remote-state-server/
- Size: 7.81 KB
- Stars: 29
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tfstate
Restful Terraform remote state serverRefer to the Documentation [here](https://www.terraform.io/docs/state/remote/http.html) on how to setup your terraform to talk to a resftful server
Currently this only supports saving the State to MongoDB after the Restful server receives it, but you can have more implementations.
Look at mongo.go for a Sample implementation and storeage.go is the basic interface that every engine needs to implement.Make sure your GOPATH and all is set.
## Getthing Running
* Do `go get github.com/oogway/tfstate`
* Execute `tfstate`
You can run `tfstate --help` to check usage:```shell
piyush:~ λ tfstate --help
Usage of tfstate:
-config string
Location of the yaml config file
```### Sample Configuration file
```yaml
mongo:
host: hello.mlab.com:15194
database: terraform
username: transformer
password: 0hS0sw33t
```### Default Configuration
```yaml
mongo:
host: "127.0.0.1:27017"
database: terraform```