Drone plugins > AWS S3 Sync
amazon_s3.svg

AWS S3 Sync

by drone-plugins


The S3 sync synchronizes files and build artifacts to your S3 bucket.

Example

kind: pipeline
name: default

steps:
- name: sync
image: plugins/s3-sync:1
settings:
  access_key: a50d28f4dd477bc184fbd10b376de753
  secret_key: bc5785d3ece6a9cdefa42eb99b58986f9095ff1c
  region: us-east-1
  bucket: my-bucket.s3-website-us-east-1.amazonaws.com
  source: folder/to/archive
  target: /target/location

Properties

  • access_key

    stringoptional

    AWS access key.

    Secret recommended

    Default: none

  • secret_key

    stringoptional

    AWS secret key.

    Secret recommended

    Default: none

  • bucket

    stringrequired

    S3 bucket name.

    Default: none

  • region

    stringoptional

    S3 region.

    Default: us-east-1

  • source

    stringoptional

    Source folder to archive.

    Default: .

  • target

    stringoptional

    Target location.

    Default: /

  • delete

    booleanoptional

    Delete files after sync.

    Default: false

  • acl

    stringoptional

    ACL for files.

    Default: none

  • content_type

    stringoptional

    Content type for files.

    Default: none

  • content_encoding

    stringoptional

    Content encoding for files.

    Default: none

  • cache_control

    stringoptional

    Cache control for files.

    Default: none

  • metadata

    stringoptional

    Additional Metadata for files.

    Default: none

  • redirects

    stringoptional

    Redirects to create.

    Default: none

  • cloudfront_distribution

    stringoptional

    Cloudfront distribution ID.

    Default: none

  • dry_run

    booleanoptional

    Dry run.

    Default: false