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

Latest commit

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

AWS S3 Github Action

Upload, download, or list files/folders through Github Actions.

Based on keithweaver/aws-s3-github-action, with bugfixes.

- uses: gsaraf/aws-s3-github-action@master
with:
command: cp
source: ./local_file.txt
destination: s3://yourbucket/folder/local_file.txt
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: eu-central-1

Inputs

Variable nameRequired/OptionalDefaultDescription
commandOptionalcpThis is the command that is being performed. When using the AWS CLI, it's the portion following the service. aws s3 cp ... <- cp, aws s3 ls <- ls
sourceRequiredN/ADepending on the command, this could be the directory you are requesting list, or the source file.
destinationRequired for cp, mv and syncN/AThe location where you want the file to arrive.
aws_regionRequiredN/AThis is the aws region for the S3 bucket. More info
aws_access_key_idOptionalN/AThis is the credentials from an IAM role for getting access to a bucket. More info
aws_secret_access_keyOptionalN/AThis is the credentials from an IAM role for getting access to a bucket. More info
aws_session_tokenOptionalN/AThis is the credentials from an IAM role for getting access to a bucket. More info
metadata_service_timeoutOptionalN/AThe number of seconds to wait until the metadata service request times out. More info

About

Github Action for using the AWS S3 CLI

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages