I'd like to write code like below in jsonnet. Can jsonnet support this?
local region = `curl http://100.100.100.200/latest/metadata/region_id`
the region variable should be the output of executing curl http://100.100.100.200/latest/metadata/region_id.
Fetch your data with
curl, pipe it into a file, invokejsonnet, thenlocal region = importstr “path/to/fetched/data”.