Drone plugin for AWS CLI.
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"