Given yaml config file that looks like this:
key1:
   key11:value1
   key12:value2
key2:
   key21:value3
How can I convert it in a bash script (preferable with yq) to env vars prefixed with a string? Desired output for env:
TF_VAR_key11=value1
TF_VAR_key12=value2
TF_VAR_key21=value3
 
     
     
     
    