You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
install-aws-cli-action
v1.0.1
Install AWS CLI on a GitHub Actions Linux host.
After this action, every step is capable of running aws
CLI, and it's up to you to set the environment variables (secrets) AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
.
Tested in unfor19/install-aws-cli-action-test
Valid version
values:
1
- latest v12
- latest v2 (default)1.##.##
- specific v12.##.##
- specific v2
Add the following step to a job in your workflow
- id: install-aws-cli
uses: unfor19/install-aws-cli-action@v1
with:
version: 2 # default
verbose: false # default
arch: amd64 # allowed values: amd64, arm64
See unfor19/install-aws-cli-action-test/blob/master/.github/workflows/test-action.yml
name: test-action
on:
push:
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- TEST_NAME: "Latest v2"
AWS_CLI_VERSION: "2"
- TEST_NAME: "Specific v2"
AWS_CLI_VERSION: "2.0.30"
- TEST_NAME: "Latest v1"
AWS_CLI_VERSION: "1"
- TEST_NAME: "Specific v1"
AWS_CLI_VERSION: "1.18.1"
- TEST_NAME: "No Input"
name: Test ${{ matrix.TEST_NAME }} ${{ matrix.AWS_CLI_VERSION }}
steps:
- name: Test ${{ matrix.TEST_NAME }}
id: install-aws-cli
uses: unfor19/install-aws-cli-action@master
with:
version: ${{ matrix.AWS_CLI_VERSION }}
- run: aws --version
shell: bash
Expand/Collapse
- Docker
- Build Docker image
docker build -t "install-aws-cli-action" .
- Run container
docker run --rm -it "install-aws-cli-action" "v2" "amd64"
Created and maintained by Meir Gabay
This project is licensed under the Apache License - see the LICENSE file for details