Skip to content

xyeeeChen/drone-aws-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Drone-AWS-CLI

GitHub tag Docker Pulls

Drone plugin for AWS CLI.

Usage

For example, download files from s3 folder:

docker run --rm \
  -e PLUGIN_ACCESS_KEY=<access_key> \
  -e PLUGIN_SECRET_KEY=<secret_key> \
  -e PLUGIN_REGION=<region> \
  -e PLUGIN_CMD=s3 \
  -e PLUGIN_SUB_CMD="cp s3://bucket/folder $PWD --recursive" \
  -v $PWD:$PWD \
  yeechen/drone-aws-cli

In drone:

steps:
  - name: download
    image: yeechen/drone-aws-cli
    settings:
      access_key: <access_key>
      secret_key: <secret_key>
      region: <region>
      cmd: s3
      sub_cmd: "cp s3://bucket/folder . --recursive"

References

AWS CLI Docs