spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
76 stars 29 forks source link

Request: `spacelift_stacks` (plural) data source #288

Closed nitrocode closed 1 year ago

nitrocode commented 2 years ago

The current spacelift_stack data source is nice but it will fail if the stack cannot be found.

If there is a spacelift_stacks data source, much like aws_iam_roles data source, then we can try to find a stack and if it fails, it can quietly return zero results.

Use case, see differences between what our current label is with what the new label is.

If the current label is a shasum of a non-committed mounted file and the new label is a new shasum of the changed non-committed mounted file, then we can use spacelift_run to trigger it.

wojciech12 commented 2 years ago

@nitrocode That is a great suggestion. We will add the support for spacelift_stacks (plural) data source to our backlog, but I cannot tell at this moment when we will implement it.

peterdeme commented 1 year ago

Implemented in https://github.com/spacelift-io/terraform-provider-spacelift/pull/382

nitrocode commented 1 year ago

Thank you!