Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Latest commit

History

History
64 lines (45 loc) 路 2.43 KB

README.md

File metadata and controls

64 lines (45 loc) 路 2.43 KB

AWS CLIs Action

Public workflows that use this action.

AWS CLI V1.X.Y workflow

AWS CLI V2.X.Y workflow

AWS CLI Latest Version workflow

AWS CLIs Action

Github Action to use any version (1.x.y or 2.x.y) of AWS CLI to run any AWS CLI commands on your workflows.

SUPPORT

OS SUPPORTED
LINUX YES
MACOS NO
WINDOWS NO

How to use this action?

Field Mandatory Observation
args YES Ex: s3 ls

Demonstration of how to execute the following command inside your workflow:

aws s3 ls

Without credentials

- name: Run AWS CLI v2.2.0 commands
  uses: GuillaumeFalourd/aws-clis-action@v1
  env:
    AWS_CLI_VERSION = "2.2.0" # If not informed, the latest AWS CLI version 2 will be used.
  with:
    args: s3 ls

With credentials

It's also possible to pass the AWS credentials from GitHub secrets using the implementation below:

- name: Run AWS CLI v1.19.59 commands
  uses: GuillaumeFalourd/aws-clis-action@v1
  env:
      AWS_CLI_VERSION: "1.19.59" # If not informed, the latest AWS CLI version 2 will be used.
      AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
      AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
      AWS_DEFAULT_REGION: "eu-west-1"
  with:
    args: s3 ls

Licensed

This repository uses the Apache License 2.0