Option on spacelift_run resource to continue even if target stack is disabled
The spacelift_run resource has an optional wait block that allows it to continue if the run is in a defined run state, and to continue if it did not reach any defined end state. I would like to configure the resource to also continue if a run cannot be triggered because the target stack is disabled.
WorkaroundUse a data source to get the stack's enabled state.
ProblemI have an OpenTofu configuration that provisions stacks using the spacelift_stack resource. It sets the initial “enabled” value, and then ignores changes for it. I also have a spacelift_run resource to trigger runs based on certain changes. If the stack is disabled via the Spacelift UI, then the spacelift_run resource will fail. I wish there was an option on the spacelift_run resource to ignore failed runs due to the stack being disabled, similar to the way it can continue for any set of run statuses.