No description
Find a file
2016-03-10 18:31:20 -05:00
assets ensure that emitted versions are the same across in/out/check 2016-03-10 12:35:56 -05:00
test centralize build command 2016-03-10 18:31:20 -05:00
.gitignore pass the AWS credentials through the Concourse source data 2016-03-10 10:57:12 -05:00
config.example.json pass the AWS credentials through the Concourse source data 2016-03-10 10:57:12 -05:00
CONTRIBUTING.md add boilerplate 18F files 2016-03-10 00:45:03 -05:00
Dockerfile finish up the out script 2016-03-10 03:01:02 -05:00
LICENSE.md add boilerplate 18F files 2016-03-10 00:45:03 -05:00
README.md include usage instructions 2016-03-10 18:24:19 -05:00

Simple S3 Resource for Concourse CI

Resource to upload files to S3. Unlike the the official S3 Resource, this Resource doesn't care about files being versioned.

Usage

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

resource_types:
- name: <resource type name>
  type: docker-image
  source:
    repository: 18fgsa/s3-resource-simple
resources:
- name: <resource name>
  type: <resource type name>
  source:
    access_key_id: {{aws-access-key}}
    secret_access_key: {{aws-secret-key}}
    bucket: {{aws-bucket}}
jobs:
- name: <job name>
  plan:
  - <some Resource or Task that outputs files>
  - put: <resource name>

See the instructions for getting your AWS credentials, then pass them and the bucket name in as parameters.

Development

Requires Docker.

  1. Run cp config.example.json config.json.
  2. Modify config.json.
  3. Run ./test/out </full/path/to/dir/or/file>.