Replies: 7 comments 9 replies
-
You need to show us your jsonnet. But rather than saying:
Just say:
|
Beta Was this translation helpful? Give feedback.
-
its not working with existing example |
Beta Was this translation helpful? Give feedback.
-
The existing example works quite well for me, can you describe the steps to reproduce with the existing example? |
Beta Was this translation helpful? Give feedback.
-
I run the following steps:
|
Beta Was this translation helpful? Give feedback.
-
Ah, I think I understand you now, you are using Terraform to render the jsonnet and then attempt to read the rendered JSON from the Terraform output. Perhaps you can just execute the jsonnet without going through Terraform? Or you could use the |
Beta Was this translation helpful? Give feedback.
-
Yes, the following working to me: But I think to use Terraform is recommended way because its auto ident the output json. |
Beta Was this translation helpful? Give feedback.
-
Did you try to run your terraform example ? |
Beta Was this translation helpful? Give feedback.
-
The problem:
$ make > dashboard.json
Generate the following output:
To obtain a clean dashboard JSON, we execute the following code:
This method may not be optimal for extracting dashboard.json, as parsing could fail if the output contains 'EOT'.
Do you have a safer method to automate the extraction of dashboard.json in Terraform?
Beta Was this translation helpful? Give feedback.
All reactions