claranet / jinjaform

Terraform wrapper with Jinja2 templates
MIT License
35 stars 8 forks source link

Issues with local state #19

Open raymondbutcher opened 5 years ago

raymondbutcher commented 5 years ago

As per #17 it doesn't work with local state files.

Additionally, I think I encounted an issue with terraform state mv -state=old.tfstate -state-out=new.tfstate some.resource but I didn't realise the problem at the time. I think it was moving the resources from the files inside the .jinjaform workspace and not updating the original files, so I thought Terraform wasn't working properly. This is tricky as it needs to run with a different working directory so it can run against rendered templates and combined files, etc.