Auto-apply new stacks on creation
If a new stack is created an has auto-apply enabled, go ahead and trigger the apply based on the DAG. I don’t want to have to manually trigger each stack.
If a new stack is created an has auto-apply enabled, go ahead and trigger the apply based on the DAG. I don’t want to have to manually trigger each stack.
Log in to comment and vote
Comments3
Natalia Gazda
Jul 17
@Geoff Lancaster, quick question, are you creating those stacks programmatically? Would it help if we added an extra setting for it on our API level? We wouldn’t want to do it for everyone as that would be a breaking change.
Blue Brownie
Jul 28
Yes, we’re using the spacelift tofu provider to create the stacks. a new setting is fine as long as i can set it in the stack resource.
Natalia Gazda
Aug 20
@Geoff Lancaster then there’s already a resource
spacelift_runYou can read more here - https://search.opentofu.org/provider/spacelift-io/spacelift/v1.11.0/docs/resources/run
Would that work for you? :)