Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run a Task as a Terraform resource (not on a schedule) #573

Open
lorengordon opened this issue Oct 10, 2024 · 0 comments
Open

Run a Task as a Terraform resource (not on a schedule) #573

lorengordon opened this issue Oct 10, 2024 · 0 comments

Comments

@lorengordon
Copy link

I would like to run a Task against a stack as a terraform resource. Sorta similar to how spacelift_run works. The spacelift_scheduled_task resource is not sufficient, because I want to run it immediately and wait for completion.

Proposed resource model:

resource "spacelift_stack_task" "this" {
  command  = string
  init     = optional(bool, true)
  stack_id = string
  wait     = optional(bool, true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant