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
I have a Terraform configuration in one project that is creating contexts. In another project, I want to fetch all the environment variables from the contexts to output elsewhere. Some of the environment variables are standardized and known ahead of time. But, I don't have a way to get at environment variables I do not know ahead of time.

Please authenticate to join the conversation.

Upvoters
Status

πŸ‘€ In Review

Board

πŸ’‘ Feature Requests

Date

About 2 months ago

Subscribe to post

Get notified by email when there are changes.