You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frequently, lately, I've been working where I'd really like to specify a flag on a StackConfig that basically is like:
skip_stack: {{ var.environment == "prod" }}
In this scenario, if the environment is "prod", Sceptre would completely ignore the StackConfig. But if the environment was something else, it would build it as usual.
While avoiding building an individual stack is fairly easy if you're directly launching a single stack (e.g. sceptre launch my_group/stack-a.yaml), it's not possible when launching a StackGroup (e.g. sceptre launch my_group) and there's a stack in that group that you only want considered a part of the group sometimes.
The only way to simulate this behavior right now is by putting the stack outside the StackGroup and creating a conditional dependency on that stack. But that's not as clean.
This feature will ultimately fulfills the feature described in #1193
The text was updated successfully, but these errors were encountered:
this might be related to the greedy pattern matching, issue #941, feature that was removed in ver 2.4.0. It looks like people are generally in favor of using a flag to revive something similar to pattern matching files for deployment. How about we add --include/--exclude command line flags to match file patterns to include/exclude on a sceptre deploy? It can be a regex or glob matcher.
Well, I'm not opposed to pattern matching. But I to be able to use jinja logic to determine whether or not a stack is included; using a cli flag doesn't give me that capability.
Frequently, lately, I've been working where I'd really like to specify a flag on a StackConfig that basically is like:
In this scenario, if the environment is "prod", Sceptre would completely ignore the StackConfig. But if the environment was something else, it would build it as usual.
While avoiding building an individual stack is fairly easy if you're directly launching a single stack (e.g.
sceptre launch my_group/stack-a.yaml
), it's not possible when launching a StackGroup (e.g.sceptre launch my_group
) and there's a stack in that group that you only want considered a part of the group sometimes.The only way to simulate this behavior right now is by putting the stack outside the StackGroup and creating a conditional dependency on that stack. But that's not as clean.
This feature will ultimately fulfills the feature described in #1193
The text was updated successfully, but these errors were encountered: