Skip to content
/ actions-awscli-v2 Public template

GitHub action to run AWS CLI using v2.x of the tool. This uses the docker version of the tool from AWS.

License

Notifications You must be signed in to change notification settings

imehedi/actions-awscli-v2

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions release flow

Action - AWS CLI V2

This action provides capability to run any of the AWS CLI commands using version 2 of the CLI tool.

- name: AWS CLI v2
  uses: imehedi/actions-awscli-v2@latest
  with:
    args: s3 ls

We are using the base image from AWS and simply providing a dockerised interface to the tool, we can perform activities within our repo as if we were using the tool locally.

aws s3 ls

The above then requires us to pass the credentials from GitHub secrets, which we can do as below:

- name: AWS CLI v2
  uses: imehedi/actions-awscli-v2@latest
  with:
      args: s3 ls
  env:
      AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
      AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
      AWS_DEFAULT_REGION: "eu-west-1"

###Materials for curious minds

About

GitHub action to run AWS CLI using v2.x of the tool. This uses the docker version of the tool from AWS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published