Skip to content

flemux/aws-s3-github-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS S3 Github Action

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

- uses: keithweaver/aws-s3-github-action@master
  with:
    command: cp
    source: ./local_file.txt
    destination: s3://yourbucket/folder/local_file.txt
    aws_access_key_id: ${{ secret.AWS_ACCESS_KEY_ID }}
    aws_secret_access_key: ${{ secret.AWS_SECRET_ACCESS_KEY }}

Inputs

Variable name Required/Optional Default Description
command Optional cp This 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
source Required N/A Depending on the command, this could be the directory you are requesting list, or the source file.
destination Required for cp, mv and sync N/A The location where you want the file to arrive.
aws_access_key_id Optional N/A This is the credentials from an IAM role for getting access to a bucket. More info
aws_secret_access_key Optional N/A This is the credentials from an IAM role for getting access to a bucket. More info
aws_session_token Optional N/A This is the credentials from an IAM role for getting access to a bucket. More info
metadata_service_timeout Optional N/A The number of seconds to wait until the metadata service request times out. More info

About

Github Action for using the AWS S3 CLI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.3%
  • Dockerfile 5.7%