Config.all.exclude_stacks does not work as it is written it should

config.all.exclude_stacks as described in does not work as it is written there.

Let’s say we have 2 stacks


stack1 has outputs that should be used in stack2.
If we have set

Terraspace.configure do |config|
  config.all.exclude_stacks = ["stack2"]

and you run
terraspace up stack1 (to generate the output)
followed by
terraspace up stack2

you will get an error message like this:

│ Error: Invalid value for input variable

│ on line 3:
│ 3: = “(Output could not be looked up for the stack2 tfvars file. stack1 stack needs to be deployed)”

│ The given value is not suitable for var.
│ declared at,1-41: map of string required.
(in my case , one of the variables I wanted to output from stack1 was a map of strings)

According to you should still be able to deploy stack2 with terraspace up stack2

Bummer. Seems like a bug. Hope to take a look at this as a part of the next update. Working on a pretty significant release for Terraspace. Unsure when right now. It’s maybe about a month out. Thanks for the report.