Skip to content

ohthepain/action-install-aws-cli

 
 

Repository files navigation

GitHub Actions status

action-install-aws-cli

Action to install the most recent version of the aws cli.

NOTE: tool-cache is currently disabled as it was breaking ubuntu due to a dependency on a deprecated uuid library

Supported Platforms

  • windows-latest
  • macos-latest

Not necessary on platforms that already have aws cli installed:

  • ubuntu-latest

To considering adding: ubuntu-16.04, windows-2016, windows-2019, macOS-10.14, ubuntu-18.04

Usage

Example

name: List S3 Contents - Multi OS

on:
  push
jobs:
  listS3:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [macOS-latest, windows-latest]
    steps:
      - uses: ohthepain/action-install-aws-cli@main
      # All commands after this point have access to the AWS CLI
      - run: aws s3 ls
        env:
          # environment variables must be added for each aws command
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}

About

An action to install and setup AWS cli

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 72.5%
  • Shell 27.5%