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.
OS | SUPPORTED |
---|---|
LINUX | YES |
MACOS | NO |
WINDOWS | NO |
Field | Mandatory | Observation |
---|---|---|
args | YES | Ex: s3 ls |
Demonstration of how to execute the following command inside your workflow:
aws s3 ls
- 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
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
This repository uses the Apache License 2.0