Deploy to AWS S3 not working




Seems like I have followed all the steps mentioned in CircleCI 2.0 documentation.

However, CircleCI is not pushing the content on AWS S3.
My circle.yml is as follows:

version: 2
working_directory: ~/app1
- image: circleci/node:6
- image: circleci/python:3.4
- checkout
- run: npm install
- run: npm run build
- run:
name: Deploy to S3 if tests pass and branch is Master
command: |
curl -O
python --user
pip install awscli --upgrade --user
aws s3 sync ~/app1/build s3://staging-area1 --delete

The build fails ( the last part while deploying contents on AWS S3) with a message:

Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 1.0MB/s
Collecting setuptools
Downloading setuptools-36.7.2-py2.py3-none-any.whl (482kB)
100% |████████████████████████████████| 491kB 3.0MB/s
Collecting wheel
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 10.6MB/s
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-9.0.1 setuptools-36.7.2 wheel-0.30.0
/bin/bash: line 2: pip: command not found
Exited with code 127

Hope someone can provide pointers on what needs to be changed…

Thanks !


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.