plumber-cd / terraform-backend-git

Terraform HTTP Backend implementation that uses Git repository as storage
Apache License 2.0
198 stars 19 forks source link

Support for terraform_remote_state. #19

Open Xachman opened 3 years ago

Xachman commented 3 years ago

I have used this in production as the backend when starting to use terraform. It has worked out well. I would like to know if there is a way to get a remote state from the git backend. This would be for a scenario where I have a state file for networking but I want to use that state in another configuration of instances.

dee-kryvenko commented 3 years ago

Hey @Xachman, glad it was useful to you! I have not tested this specific scenario, but backend implements HTTP API fully so it should work. You would need to have backend running on a side and configure your 2nd tf module to look into it (including repo address and path).

toabi commented 3 years ago

remote state via http backend works, I just tried it :)

Nice project. I'll probably also use it in production.