terraform-provider-spacelift icon indicating copy to clipboard operation
terraform-provider-spacelift copied to clipboard

Provider should allow to create stacks from blueprints

Open juan-vg opened this issue 10 months ago • 3 comments

Since this seems to be possible through the API and the UI, the TF provider should also implement the stack creation from a blueprint

mutation {
  stackCreateFromBlueprint(input: {
    blueprintId: "your-blueprint-id"
    inputs: [
      { id: "app", value: "my-app" },
      { id: "environment", value: "staging" }
    ]
  }) {
    id
    name
  }
}

juan-vg avatar Jan 13 '25 14:01 juan-vg

Hi @juan-vg. That could make sense, though it's arguable since the created stack wouldn't be managed by Terraform itself.

peterdeme avatar Feb 10 '25 11:02 peterdeme

From my POV if it can be done through the API, it should be doable through the TF provider

juan-vg avatar Feb 10 '25 17:02 juan-vg

Juan, can you tell us an example of why/how would you use that? I feel like having it managed by Terraform kind of defeats the purpose of fast self-servicing. For git-based self servicing, a regular Terraform module would fit better imo.

peterdeme avatar Feb 10 '25 17:02 peterdeme

Closing it as stale

peterdeme avatar Sep 17 '25 21:09 peterdeme