version: 2
jobs:
  build:
    docker:
      - image: circleci/node:7.10
    working_directory: ~/
    steps:
      - checkout

  deploy:
    docker:
      # Python image required for AWS client
      - image: 2.7.15-stretch-node-browsers
    working_directory: ~/
    steps:
      - checkout
      - run:
          name: Install awscli
          command: 'sudo pip install awscli'
      - run:
          name: Deploy using CodeDeploy
          command: |
            aws deploy create-deployment \
            --application-name tadadev \
            --deployment-config-name CodeDeployDefault.OneAtATime \
            --deployment-group-name tadadev-group \
            --description 'TADA GitHub deployment' \
            --github-location repository=klpdotorg/tada-frontend,commitId=${CIRCLE_SHA1}

workflows:
  version: 2
  deploy:
    jobs:
      - deploy:
          filters:
            branches:
              only: master

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:7.10
    working_directory: ~/
    steps:
      - checkout

  deploy:
    docker:
      # Python image required for AWS client
      - image: 2.7-stretch
    working_directory: ~/
    steps:
      - checkout
      - run:
          name: Install pip
          command: 'sudo apt-get install pip'
      - run:
          name: Install awscli
          command: 'sudo pip install awscli'
      - run:
          name: Deploy using CodeDeploy
          command: |
            aws deploy create-deployment \
            --application-name tadadev \
            --deployment-config-name CodeDeployDefault.OneAtATime \
            --deployment-group-name tadadev-group \
            --description 'TADA GitHub deployment' \
            --github-location repository=klpdotorg/tada-frontend,commitId=${CIRCLE_SHA1}

workflows:
  version: 2
  deploy:
    jobs:
      - deploy:
          filters:
            branches:
              only: master

Change Docker image, install pip before using it
Change Docker image, install pip before using it
