Terraform resource for managing Tasks on a stack

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)
}

I created a feature request on GitHub also, for the spacelift terraform provider, https://github.com/spacelift-io/terraform-provider-spacelift/issues/573

Workaround
Not really, no.
Problem
See the description above.

Please authenticate to join the conversation.

Upvoters
Status

βœ… Completed

Board

πŸ’‘ Feature Requests

Tags

Stacks

Date

Over 1 year ago

Subscribe to post

Get notified by email when there are changes.