[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.
My Environment
Software
Version
Operating System
Ubuntu 22.04.2 LTS
Terraform
v1.4.6
Terraspace
2.2.6
Ruby
3.0.3p157
Expected Behaviour
Run terraform.rb script with Terraspace hook bound on build command.
Current Behavior
Defined terraspace hooks on build command but they are not executed.
Step-by-step reproduction instructions
terraspace new project test
cd test
terraspace new stack stack1
terraspace new hook --type project
in config/terraform/backend.tf put the following content:
Checklist
My Environment
Expected Behaviour
Run terraform.rb script with Terraspace hook bound on
build
command.Current Behavior
Defined terraspace hooks on
build
command but they are not executed.Step-by-step reproduction instructions
terraspace new project test cd test terraspace new stack stack1 terraspace new hook --type project
in
config/terraform/backend.tf
put the following content:in
config/hooks/terraform.rb
add the following content:Then run:
terraform build stack1
Code Sample
Solution Suggestion