version: 2
jobs:
  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:
  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

Fix use of environment variable
Fix use of environment variable
