Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Action - AWS CLI

Recently the following GitHub Action has been deprecated with a deletion date already established at end of month (2019-12-31). The issue is, there is no "official" alternative yet (should be here). My questions are:

  1. Does someone know if the "official" action will be released before 2019-12-31?

  2. Is there an alternative?

like image 728
Pedro Avatar asked Dec 03 '19 22:12

Pedro


2 Answers

aws-cli package is available in GitHub-hosted virtual environments. (aws-cli/1.16.266 Python/2.7.12 Linux/4.15.0-1057-azure botocore/1.13.2)

Make sure to set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in environment variables. You can use Github secrets to store these credentials securely.

- name: Upload to S3
      run: |
        aws s3 sync ./build s3://test-bucket
      env:
        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        AWS_DEFAULT_REGION: 'ap-south-1'
like image 95
Chamika Vishmal Avatar answered Sep 19 '22 13:09

Chamika Vishmal


From GitHub documentation the aws-cli is already available directly on the host image.

It would be nice if this information were available on the deprecation notice ¯\_(ツ)_/¯

like image 31
Pedro Avatar answered Sep 20 '22 13:09

Pedro