Virtual-environments: Update aws cli v2 on Ubuntu 20.04 to include ecr-public subcommand

Created on 8 Dec 2020  路  8Comments  路  Source: actions/virtual-environments

Tool information

  • Tool name: AWS CLI
  • Tool license: Apache License, Version 2.0
  • Add or update? update (from 2.1.4)
  • Desired version: 2.1.6 or 2.1.7
  • Approximate size:

Area for Triage: Scripting and command line

Virtual environments affected

  • [ ] Ubuntu 16.04
  • [ ] Ubuntu 18.04
  • [x] Ubuntu 20.04
  • [ ] macOS 10.15
  • [ ] macOS 11.0
  • [ ] Windows Server 2016 R2
  • [ ] Windows Server 2019

Can this tool be installed during the build?
https://github.com/aws/aws-cli/tree/v2#installation or https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html

latest version installation:

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

or specific version

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

Tool installation time in runtime
Not verified just yet.

Are you willing to submit a PR?
Sure

NOTE: 2.1.6 introduced ecr-public subcommand which handles requests towards recently launched AWS public ECR

Scripting and command line Ubuntu feature request question

Most helpful comment

Deployment of Ubuntu 20.04 has been finished yesterday.
AWS CLI was updated to 2.1.9.
Closign the issue.

All 8 comments

Hello, @pmalek-sumo
The https://github.com/actions/virtual-environments/blob/main/images/linux/scripts/installers/aws.sh script is updated to install the latest version aws cli v2 for Ubuntu 20.04.

Thanks @al-cheb for clarification

So do I understand it correctly that it all depends on which runner I end up running my job on because of the time when the runner was provisioned?

Or is there a different reason for my job getting aws 2.1.4 in here: https://github.com/SumoLogic/sumologic-kubernetes-collection/runs/1517520296?check_suite_focus=true#step:4:4 ?

@pmalek-sumo , the script that Alex mentioned install always the latest version of AWS to Ubuntu 20.04 images.
Currently, it is 2.1.4 that was released 14 days ago. With next image rollout, images will be updated to AWS CLI 2.1.8 automatically.

Usually, it takes less time to propagate new version but we have deployment freeze this week due to Universe so i would expect new image with latest AWS next week

Ok, got it.

Can we leave this issue open until new rollout so that we get a notification when can we change our workflows?

Sure, we will update an issue as soon as deployment is finished

Same here, see docker/login-action#37 for more info.

  • ubuntu-latest / ubuntu-18.04: AWS CLI 1.18.185
  • ubuntu-20.04: AWS CLI 2.1.4

Thanks.

Any updates on deployment?

Deployment of Ubuntu 20.04 has been finished yesterday.
AWS CLI was updated to 2.1.9.
Closign the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tnze picture Tnze  路  4Comments

shivammathur picture shivammathur  路  3Comments

ydnar picture ydnar  路  3Comments

matthewfeickert picture matthewfeickert  路  3Comments

jayaddison picture jayaddison  路  3Comments