title: How to use a username and password stored in AWS Secrets Manager in my Jenkins job?
body: <p>I have a Jenkins Pipeline that runs Cypress Tests on a Docker Container.
  The tests need a username and password to login to the web application. I have saved the username and password in AWS Secrets Manager. I can do that when I execute a shell command as a build step</p>
  <pre><code>USERNAME=$(aws secretsmanager get-secret-value --region us-east-2 --secret-id myID | jq -r .SecretString | jq -r .username)
  PASSWORD=$(aws secretsmanager get-secret-value --region us-east-2 --secret-id myID | jq -r .SecretString | jq -r .password)
  
  docker run -e NO_COLOR=1 -v &quot;$PWD&quot;:/workdir -w /workdir --entrypoint=cypress 1.dkr.ecr.us-east-2.amazonaws.com/cypress/included:3.8.3 run  --env username=&quot;$USERNAME&quot;,password=&quot;$PASSWORD&quot; 
  </code></pre>
  <p>However, I want to create a Jenkins Pipeline job and do this from JenkinsFile.
  How can I read the username and password from AWS Secrets Manager in the Jenkinsfile?</p>