Support Name-Based Lookup for Worker Pool ID in spacelift_worker_pool Data Source

Please add support for resolving a worker pool’s ID by name in the data "spacelift_worker_pool" data source, to enable assigning worker_pool_id to resources without introducing plan noise.

Workaround
Right now, users must use the plural data source. However, this causes persistent plan diffs, because: The values inside worker_pools are marked as Computed. Terraform cannot resolve them at plan time and marks worker_pool_id = (known after apply). This results in noisy plans on every run, even when no actual changes exist.
Problem
Desired Outcome Allow users to write: data "spacelift_worker_pool" "default" { name = "default" } resource "spacelift_stack" "example" { name = "stack-example" worker_pool_id = data.spacelift_worker_pool.default.id } Where: - The name field identifies the worker pool. - The id is resolved during the plan phase. - No Computed values are involved in the returned id : ensuring no false-positive diffs when assigning it to a spacelift_stack.

Please authenticate to join the conversation.

Upvoters
Status

✅ Completed

Board

💡 Feature Requests

Date

8 months ago

Subscribe to post

Get notified by email when there are changes.