Simple S3 Resource for Concourse CI

Resource to upload files to S3. Unlike the the official S3 Resource, this Resource can upload or download multiple files.

This is a slightly modified version of the original s3-resourse simple ( This version allows users to define endpoint as an option. This allows the usage of compatible S3 resources (such as minio), instead of only buckets located in amazon aws.


Include the following in your Pipeline YAML file, replacing the values in the angle brackets (< >):

- name: <resource type name>
  type: docker-image
    repository: 18fgsa/s3-resource-simple
- name: <resource name>
  type: <resource type name>
    access_key_id: {{aws-access-key}}
    secret_access_key: {{aws-secret-key}}
    bucket: {{aws-bucket}}
    endpoint: {{s3-compatible-endpoint-url}}
    path: [<optional>, use to sync to a specific path of the bucket instead of root of bucket]
    options: [<optional, see note below>]
    region: <optional, see below>
- name: <job name>
  - <some Resource or Task that outputs files>
  - put: <resource name>

AWS Credentials

The access_key_id and secret_access_key are optional and if not provided the EC2 Metadata service will be queried for role based credentials.


The options parameter is synonymous with the options that aws cli accepts for sync. Please see S3 Sync Options and pay special attention to the Use of Exclude and Include Filters.

Given the following directory test:

├── results
│   ├── 1.json
│   └── 2.json
└── scripts

we can upload only the results subdirectory by using the following options in our task configuration:

- "--exclude '*'"
- "--include 'results/*'"


Interacting with some AWS regions (like London) requires AWS Signature Version 4. This options allows you to explicitly specify region where your bucket is located (if this is set, AWS_DEFAULT_REGION env variable will be set accordingly).

region: eu-west-2