Hi,
We are using concourse, in one of the tasks, we were uploading a .tgz file so far to s3 bucket using the below syntax:
- name: <resource_name>
type: s3
source:
bucket: <bucket_name>
access_key_id: {{aws-access-key}}
secret_access_key: {{aws-secret-key}}
region_name: <region_name>
private: true
regexp: <file_path>/<file_name>_*_.tgz
In my job, I have something like this:
- put: <resource_name>
params:
file: <file_path>/<file_name>_*_.tgz
Now, because of our requirement change, we need to upload the entire directory to s3 resource. I was looking at this: https://github.com/concourse/s3-resource. I did not
see any way of uploading the directory itself mentioned in the documentation. Is it possible? If yes, could you let me know how?
I tried this:
- name: <resource_name>
type: s3
source:
bucket: <bucket_name>
access_key_id: {{aws-access-key}}
secret_access_key: {{aws-secret-key}}
region_name: <region_name>
private: true
versioned_file: <file_path>/
- put: <resource_name>
params:
file: <file_path>/
I get error in upload, the following error I get:
error running command: MultipartUpload: upload multipart failed
/tmp/build/put/<file_path>: is a directory
Is there something I am doing wrong?
Warm regards,
Pavan