boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
680 stars 46 forks source link

boot.rb won't work with terraspace version 1.0.2 #191

Closed ORuessel closed 2 years ago

ORuessel commented 2 years ago

Checklist

My Environment

Software Version
Operating System Windows 10 - WSL Ubuntu 20.04
Terraform 1.1.4
Terraspace 1.0.2
Ruby

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

Code Sample

Solution Suggestion