Closed pie-r closed 3 years ago
This might be because terraspace cleans up the .terraspace-cache
folder between commands. You can turn off this behavior with build.clean_cache = false
config/app.rb
Terraspace.configure do |config|
...
config.build.clean_cache = false
end
Thinking that may be it. Am considering changing the default from true
to false
.
Hi, no I already tested this flag without a good effect. I found this flag from another issue but in this case it doesn't fix the problem. I'd like to contribute if you can put me in the right path.
OT: I'm comparing terraspace and terragrunt in 4 articles, the next one will be terraspace, are you interested to review it before the release? https://medium.com/geekculture/from-terralith-to-terraservice-with-terraform-acf990e65578
Figured out what's going on. The builder was checking for any path with the word test
in it. The test_ssh
folder was being skipped. Fixed #142 and released in 0.6.17
RE: article
Very cool! Can read it after its published. Hope it's good. Good luck with the article! 🎉
terraspace version:
I have a module like this, with a
test_ssh
folder and a .tpl file on it:But in the .terraspace-cache folder there isn't the template file after the plan:
In Fact, I tried with:
The plan is:
The template example I'm working on is:
If I use
${path.module}
I get:With the full original path ("/Users/xxx/projects/git/terraform-services/terraspace/infra/.terraspace-cache/eu-central-1/sandbox/stacks/mice-service/test_ssh/user_data.tpl") outside the .terraspace-cache folder, it works.