Allow complex variables in context
I have a need to create a variable in a context that needs to be in json format and be kept a secret so it doesn’t need to be stored in source control
- Workaround
I have a need to create a variable in a context that needs to be in json format and be kept a secret so it doesn’t need to be stored in source control
Log in to comment and vote
Comments3
Black Breeze
May 10, 2025
Quick question to dig deeper: Spacelift contexts do already support JSON strings as variable values. Are you trying to feed this into Terraform as a map or list, or something else entirely (like a shell script or template)? And what’s the issue today—does the format get mangled, or is it more about ergonomics?
Would love to understand what job you’re trying to do with the complex structure—sometimes we can make progress without needing a feature.