terraform-provider-spacelift
terraform-provider-spacelift copied to clipboard
Provider should allow to create stacks from blueprints
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
}
}
Hi @juan-vg. That could make sense, though it's arguable since the created stack wouldn't be managed by Terraform itself.
From my POV if it can be done through the API, it should be doable through the TF provider
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.
Closing it as stale