title: how to read from a json file and create a environment variable in cli?
body: <p>I want to read the aws credentials file and create the aws keys environment variable dynamically by reading the file</p>
  
  <p>I need this because I have aws credentials expiring on short terms</p>
  
  <p>so every time i need to created a new set of keys and then set it to env variables</p>
  
  <p>what I want is to parse the credential file and set it directly to env variable</p>
  
  <p>I have the credentials in a json file</p>
  
  <p>I am using 'jq' to parse the json by command</p>
  
  <p><code>cat credentials.json | jq .Credentials.AccesskeyId</code></p>
  
  <p><code>cat credentials.json | jq .Credentials.SecretKey</code></p>
  
  <p>now how can I use the output in setting the value in something like</p>
  
  <p><code>export AWS_ACCESS_KEY = output of (cat credentials.json | jq .Credentials.AccesskeyId)</code></p>