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

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 🤖

License

Notifications You must be signed in to change notification settings

GuillaumeFalourd/aws-clis-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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 🤖

Topics

Resources

License

Stars

Watchers

Forks