Specifically, the error I’m getting is
“S3 sync failed: TimeoutError: Missing credentials in config”
This is what the job looks like in the config file:
deploy-dev:
docker:
- image: circleci/node:8.2
working_directory: ~/[repo]
steps:
- checkout
- run: sudo rm -rf node_modules
- run: npm install
- run: sudo apt-get install awscli
- run:
command: |
aws configure set aws_access_key_id $DEV_AWS_KEY
aws configure set aws_secret_access_key $DEV_AWS_SECRET
aws configure set default.region us-west-2
node run publish-dev
aws cloudfront create-invalidation --cli-input-json "{\"DistributionId\":\"E320VZN6YT3QIW\",\"InvalidationBatch\":{\"Paths\":{\"Quantity\":1,\"Items\":[\"/*\"]},\"CallerReference\":\"$(date +%s)\"}}"
cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage
The environment variables under Build Settings in circleci look like this:
This was working fine in Circle 1, and I think environment variables are handled differently now somehow, but I can’t figure out from either the AWS docs or CircleCI docs what I need to do differently. Also, the back end (java/mvn) is working just fine and it references them exactly the same way in the config file