Is there a way to bypass / disable the auto "json-...
# atmos
k
Is there a way to bypass / disable the auto "json-ification" of strings obtained via
!terraform.state
? For example:
Copy code
terraform:
  secretsmanager:
    vars:
      hello_world: !terraform.state hello .world # string containing: "{\"hello\": \"world\"}"
Here I want the "raw" string however atmos is trying to help me and instead gives me a map 😢
✅ 1
d
k
I tried the following but it gives the error
Error: invalid number of arguments in the Atmos YAML function !terraform.state
Copy code
terraform:
  secretsmanager:
    vars:
      hello_world: !terraform.state hello .world | to_json # string containing: "{\"hello\": \"world\"}"
Perhaps I'm misunderstanding how to use yq expressions in this context? Thanks for the help!
d
k
Ohhhh–I see! That worked 🎉 Thank you so much. TIL
d
glad it did. I wasn't sure if it'd try to reparse it even after the yq expression