title: AWS CLI tools on Circle CI: configure: unknown command
body: <p>I'm trying to deploy a docker application onto Elastic Beanstalk from Circle CI.</p>
  <p>The deployment section of my circle.yml is</p>
  <pre><code>deployment:
    hub:
      branch: [internal, production]
      commands:
        - pip install awscli
        - docker push company/web:$CIRCLE_SHA1
        - sudo bash deploy.sh $CIRCLE_SHA1 $CIRCLE_BRANCH $CIRCLE_BUILD_NUM
  </code></pre>
  <p>and my deploy.sh calls aws cli as follows</p>
  <pre><code>aws --version
  aws configure set aws_access_key_id $AWSKEY
  aws configure set aws_secret_access_key $AWSSECRETKEY
  aws configure set default.region us-west-2
  aws configure set default.output json
  
  echo &quot;SAVING NEW DOCKERRUNFILE: $DOCKERRUN_FILE&quot;
  aws s3 cp $DOCKERRUN_FILE s3://$EB_BUCKET/$DOCKERRUN_FILE
  </code></pre>
  <p>But I get the error</p>
  <blockquote>
  <p>--version: mispelled meta parameter?</p>
  <p>sanity-check: &quot;/root/.awssecret&quot;: file is missing.  (Format: AccessKeyID\nSecretAccessKey\n)</p>
  <p>configure: unknown command Usage: aws ACTION [--help]</p>
  </blockquote>
  <p>The script works completely fine locally on mac os using the exact same key and secret.</p>
  <p>Both versions (on circle and my mac) of awscli are 1.7.14</p>