spacelift_context resource should default to using current space
Currently, the default space for a new context created using the Spacelift Terraform provider is “root”. This value only makes sense if the creation is occurring in the root space; otherwise it results in a error. A more rational / useful behavior would be to default to creating the context in the current space.
Note that this change is fully backwards compatible because today the only place the current default works is in the root and that use case would not change with this proposal.
Also note that this change would make using spaces simpler and more intuitive.
- Workaround
- Problem
Log in to comment and vote
Comments1
Aleksandra Cieslak
Jul 29
Hi, thanks for the proposal, and sorry for the long silence. After reviewing it with engineering, we've decided not to move forward with this - we don't want to add complexity to how Spacelift configuration behaves across spaces.
The workaround you outlined - using
spacelift_current_spaceand passingspace_idexplicitly - remains the recommended approach.Closing this out for now. If it becomes a bigger blocker, let us know.