AWS version upgrade

I need to use an updated awscli version. Looks like the version available with “machine” is quite old (“aws-cli/1.11.165 Python/2.7.6 Linux/4.4.0-96-generic botocore/1.7.23”).

What’s the best way to do that?

For reference, here’s the beginning of my config file:

version: 2.1
jobs:
  build-and-deploy:
    machine: true
    steps:
      - checkout
      - run: aws --version
      - run: aws ecr get-login-password | docker login --username AWS --password-stdin etc. etc.

(that last command fails because get-login-password is from 1.18)

For those wondering, I solved this myself in the end. I added this:

  - run: sudo apt-get update
  - run: sudo apt-get install -y python-pip python-dev
  - run: sudo pip install --upgrade awscli
  - run: aws --version

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