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.

Workaround
Use a data source to get the stack's enabled state.
Problem
I 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.

Please authenticate to join the conversation.

Upvoters
Status

πŸ”­ Discovery

Board

πŸ’‘ Feature Requests

Tags

Spacelift Provider

Date

5 days ago

Subscribe to post

Get notified by email when there are changes.