[X] Upgrade Terraspace: Are you using the latest version of Terraspace? This allows Terraspace to fix issues fast. There's an Upgrading Guide: https://terraspace.cloud/docs/misc/upgrading/
[X] Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you're unsure or want to ask a question, do so on https://community.boltops.com
[X] Code sample: Have you put together a code sample to reproduce the issue and make it available? Code samples help speed up fixes dramatically. If it's an easily reproducible issue, then code samples are not needed. If you're unsure, please include a code sample.
Reproduce in console the bug
Creation of new project without any example. After that, i create inside the folder "config" the new file boot.rb like the documentation
.
βββ Gemfile
βββ Gemfile.lock
βββ README.md
βββ Terrafile
βββ Terrafile.lock
βββ app
β βββ modules
β βββ stacks
βββ config
β βββ app.rb
**β βββ boot.rb**
β βββ terraform
βββ log
β βββ up
βββ vendor
βββ modules
Inside the file boot.rb are only follow code inside
ENV['TS_ENV'] ||= 'demo-environment'
after terraspace plan vpc write folder dev
terraspace plan vpc
Building .terraspace-cache/eu-central-1/dev/stacks/vpc
Built in .terraspace-cache/eu-central-1/dev/stacks/vpc
Current directory: .terraspace-cache/eu-central-1/dev/stacks/vpc
=> terraform init -get -input=false >> /tmp/terraspace/log/init/vpc.log
Checklist
My Environment
Expected Behaviour
Based on the documentation https://terraspace.cloud/docs/config/boot/ i want to enable a boot hook for default TS_ENV. This won't work.
Current Behavior
Step-by-step reproduction instructions
Reproduce in console the bug
Creation of new project without any example. After that, i create inside the folder "config" the new file boot.rb like the documentation . βββ Gemfile βββ Gemfile.lock βββ README.md βββ Terrafile βββ Terrafile.lock βββ app β βββ modules β βββ stacks βββ config β βββ app.rb **β βββ boot.rb** β βββ terraform βββ log β βββ up βββ vendor βββ modules Inside the file boot.rb are only follow code inside ENV['TS_ENV'] ||= 'demo-environment' after terraspace plan vpc write folder dev terraspace plan vpc Building .terraspace-cache/eu-central-1/dev/stacks/vpc Built in .terraspace-cache/eu-central-1/dev/stacks/vpc Current directory: .terraspace-cache/eu-central-1/dev/stacks/vpc => terraform init -get -input=false >> /tmp/terraspace/log/init/vpc.logCode Sample
Solution Suggestion