terraform-backend-git icon indicating copy to clipboard operation
terraform-backend-git copied to clipboard

Support for terraform_remote_state.

Open Xachman opened this issue 3 years ago • 2 comments

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.

Xachman avatar Apr 08 '21 17:04 Xachman

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).

dee-kryvenko avatar Apr 08 '21 17:04 dee-kryvenko

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

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

toabi avatar Aug 04 '21 12:08 toabi