title: How to pass json inside the terraform variable?
body: <p>I am trying to create an AWS parameter store via terraform that can also pass default values with the JSON format. Here is a sample of the code.</p>
  <pre><code>resource &quot;aws_ssm_parameter&quot; &quot;secret&quot; {
    name        = &quot;/something/env&quot;
    description = &quot;This is a something values&quot;
    type        = &quot;SecureString&quot;
    value       = &quot;test&quot;
    
    tags = {
      environment = &quot;production&quot;
    }
  } 
  </code></pre>
  <p>Instead of passing out a single value as a &quot;test&quot; from value, how can I pass the json one inside value one.</p>
  <p>So that AWS parameter store value will be like</p>
  <pre><code>{
     &quot;key&quot;: &quot;value&quot;
  }
  </code></pre>