title: Parsing secrets from AWS secrets manager using AWS cli
body: <p>I am retrieving secrets I have stored in AWS secrets manager with the AWS cli like this:</p>
  
  <pre><code>aws secretsmanager get-secret-value --secret-id secrets
  </code></pre>
  
  <p>Which returns</p>
  
  <pre><code>arn:aws:secretsmanager&lt;ID&gt;:secret:my_secrets &lt;number&gt; my_secrets {"API_KEY":"ABCDEFGHI"}       &lt;UUID string&gt;
  VERSIONSTAGES   AWSCURRENT
  </code></pre>
  
  <p>Does anyone know how I only get the secret ("API_KEY": "ABCDEFGHI")?
  I need to move these secrets to my register-task-definition environment variables. The best way would be to store them in a file and delete it after us or store them in variable. It is running on a linux machine. </p>