How to run aws configure in a travis deploy script?
<p>I am trying to get <a href="https://travis-ci.com" rel="noreferrer">travis-ci</a> to run a custom deploy script that uses <a href="https://aws.amazon.com/cli/" rel="noreferrer"><code>awscli</code></a> to push a deployment up to my staging server.</p>

<p>In my <code>.travis.yml</code> file I have this:</p>

<pre><code>before_deploy:
  - 'curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"'
  - 'unzip awscli-bundle.zip'
  - './awscli-bundle/install -b ~/bin/aws'
  - 'export PATH=~/bin:$PATH'
  - 'aws configure'
</code></pre>

<p>And I have set up the following environment variables:</p>

<pre><code>AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
</code></pre>

<p>with their correct values in the <code>travis-ci</code> web interface.</p>

<p>However when the <code>aws configure</code> runs, it stops and waits for user input.  How can I tell it to use the environment variables I have defined?</p>