No description
32afea0bd5
not a great idea to reveal the S3 credentials in the build logs |
||
---|---|---|
assets | ||
test | ||
.gitignore | ||
config.example.json | ||
CONTRIBUTING.md | ||
Dockerfile | ||
LICENSE.md | ||
README.md |
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.
- Run
cp config.example.json config.json
. - Modify
config.json
.- See the instructions for getting your AWS credentials.
- Exclude the
s3://
prefix/protocol for thebucket
.
- Run
./test/out </full/path/to/dir/or/file>
.