Ability to get all environment variables for a context
In the [Spacelift provider](
https://search.opentofu.org/provider/spacelift-io/spacelift/latest
), I would like a data source that allows me to get all the environment variables for a context. The [spacelift_environment_variable](
https://search.opentofu.org/provider/spacelift-io/spacelift/latest/docs/datasources/environment_variable) data source requires that you know the name of a specific environment variable.
- Workaround
- None.
- Problem
Log in to comment and vote
Comments1
Aleksandra Cieslak
Nov 13
Hi, thanks for the detailed write-up, and sorry it’s taken us a while to get back to you.
The use case makes sense: when contexts are managed in one Terraform project, there’s currently no way to read all of their environment variables from another project without knowing the variable names up front.
We’ve reviewed this against our current priorities and, given the limited demand we’ve seen so far, we’re not planning to build it in the near future, so we’re closing this request to keep the board accurate.